![]() |
|
more useful options | |
PerlMonks |
Re^3: Regex Anchors confusionby merlyn (Sage) |
on May 18, 2005 at 15:30 UTC ( [id://458248]=note: print w/replies, xml ) | Need Help?? |
Well, technically, \b matches between a word character, and the failure to match a word character (such as the edge of a string). I know you know that. This is for others that are following along at home. {grin}
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
In Section
Seekers of Perl Wisdom
|
|