I'm trying to match a set of hashtags or words in a javascript string.
(#hashtag|word)
almost does it, except I'd like to consider word boundaries.
\b(#hashtag|word)\b
doesn't match the beginning word boundary, since of course '#' is not a word character.
ideally i'd like to have something like a '\b' anchor that matches hashtags. Any idea?