Perl Monk, Perl Meditation | |
PerlMonks |
Re: regex negative lookahead behaviourby princepawn (Parson) |
on Jul 18, 2003 at 18:10 UTC ( [id://275695]=note: print w/replies, xml ) | Need Help?? |
The only thing that overrides a regexes natural greediness is it's desire to achieve a match. If it can, it will, and it can, so it does:)How about putting a +after the quantifier? Carter's compass: I know I'm on the right track when by deleting something, I'm adding functionality
In Section
Seekers of Perl Wisdom
|
|