go ahead... be a heretic | |
PerlMonks |
Re^3: look-ahead greed changed between perl releases?by sn1987a (Deacon) |
on May 06, 2014 at 18:29 UTC ( [id://1085220]=note: print w/replies, xml ) | Need Help?? |
No, it does not override the greediness. The regexp still matches that longest string. But this is just a look ahead. Once the match/substitution is made, the regexp engine starts searching again after the first character matched. amon below has a great graphical view of what is happening (Re: look-ahead greed changed between perl releases?).
In Section
Seekers of Perl Wisdom
|
|