laziness, impatience, and hubris | |
PerlMonks |
Re: regular expressionby staeryatz (Monk) |
on Nov 03, 2001 at 07:34 UTC ( [id://122999]=note: print w/replies, xml ) | Need Help?? |
Another explaination behind the answer... With regex's and meta characters, it depends on whether or not you want to join the meta character with the pattern as a single atom. If the meta character is placed in the parenthesis with a pattern, then it'll be included in as part of the backreference variable. In your case with using the meta character \b, the "word boundary", it is not something that represents (a) character(s), therefore it wouldn't show up in the backreference variable.
In Section
Seekers of Perl Wisdom
|
|