I want to make my regex match a pattern only if it is not preceded by a character, the
It basically injects a word boundary while excluding the ^ as well.
[^\w] = \W\b\w
[^^] will match a '^
\w+ will match
You can see it if you put capture groups around it.