Use \b instead of lookaheads/behinds in regexp.

\b (word boundary) is a much more straightforward solution than trying
to look ahead/behind for \W characters. It's also more effective: the
previous regexp was missing target tokens that were at the beginning
or end of a line.