I'm using a simple regular expression to match on the start of words, using the word boundary matcher, like
/(\b)rice/
will match on "years of rice and salt" but not "maurice ravel" and so on.
However, I'm finding a ! at the start of the string is negating the word boundary matcher. So the string "!!" is matching on "some text!!".
Anyone know why this would be happening? Haven't seen that it's a special character.