I think the problem is that \b matches between \W and \w - since the '&' isn't within the \w class, \b failes to match.
Try replacing the \b with [^\w&][\w&] and adjusting the rest of the regexp accordingly.
See perlre for more details
-- zigdon
In reply to (z) Re: Regex not matching &
by zigdon
in thread Regex not matching &
by murugu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |