No such thing as a small change | |
PerlMonks |
Re: Re-define Word Boundary?by thospel (Hermit) |
on Nov 21, 2003 at 03:55 UTC ( [id://308800]=note: print w/replies, xml ) | Need Help?? |
You're not actually USING the \b, since you will match the same things without them (the \w+ will start at the earliest possible moment and stop at the last moment, both of which points will be \b boundaries).
Now assuming you want to actually match "a/c" in the case of your example, you are also changing the meaning of \w, and your new \b still isn't used, so you can just as well write:
In Section
Seekers of Perl Wisdom
|
|