`\B` does apparently match a non-word boundary but, for some reason, that's the escape character that works here as opposed to `\b`. I'm not really sure how to explain that, but I couldn't get it working with a `\b`.

And you're right about `\A`. Looks like I was looking at a bad JS Regex cheat sheet. I'll change it to `^`