How to match specific words that are not part of a word?
For example, I'd like the regex to detect the three "on" but not the one in "long".
on long on abc the on
When I use (?: |^)the|on|of(?: |$)
, it detects the "on" in "long" as well which is not what I am looking for.