@PhoneBoy Indeed, it’s just surprising how doing the same thing at different points requires something totally different.
@PhoneBoy I’ll put both variants up on GitHub later when I get home.
@colinwalker Your regex is certainly more comprehensive than mine ;-) There are several edge-cases mine doesn't handle (most notably adjacent to HTML markup). I think it's neat how you can have your hashtags only linked on your site (where they make sense). But mostly I like how we're all sharing helpful code snippets and learning from each other here 👍
@smokey I tried yours against a test post I have in draft and it worked perfectly. The difference between save and display requirements is crazy.