![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: regexp mystery no xxxby ides (Deacon) |
on Aug 18, 2003 at 21:22 UTC ( #284728=note: print w/replies, xml ) | Need Help?? |
WOW! I have no idea why, but if you remove the 'g' option on the second regex it works as expected. There really isn't a need for the 'g' in these examples because you're binding on ^ and $ which makes the 'g' useless.
-----------------------------------
In Section
Seekers of Perl Wisdom
|
|