Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^3: look-ahead greed changed between perl releases?

by sn1987a (Chaplain)
on May 06, 2014 at 18:29 UTC ( #1085220=note: print w/replies, xml ) Need Help??


in reply to Re^2: look-ahead greed changed between perl releases?
in thread look-ahead greed changed between perl releases?

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?).

  • Comment on Re^3: look-ahead greed changed between perl releases?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1085220]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2019-10-18 20:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?