Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: help with lazy matchingby Special_K (Monk) |
on Jan 05, 2015 at 23:07 UTC ( [id://1112252]=note: print w/replies, xml ) | Need Help?? |
I think the source of my confusion was not knowing that regular expressions in perl always start matching from the left side. If the regular expression could start matching from anywhere, then using the non-greedy modifier could give the behavior I was expecting in my original post, i.e. matching "bar".
In Section
Seekers of Perl Wisdom
|
|