So, there are four pairs: word-word, word-nonword, edge-word, edge-nonword. \b matches the middle two of those, and \B matches the outer two of those.
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
In reply to Re^3: Regex Anchors confusion
by merlyn
in thread Regex Anchors confusion
by silent11
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |