No such thing as a small change | |
PerlMonks |
Re^2: help with lazy matchingby Special_K (Monk) |
on Jan 05, 2015 at 22:17 UTC ( [id://1112234]=note: print w/replies, xml ) | Need Help?? |
I guess my thinking was that with a non-greedy modifier, my regular expression could use the slash before "bat" to match the slash, then it would match "bat" as the .+, and then finally it would match the end of line character in the file as the $. Why does it not work that way?
In Section
Seekers of Perl Wisdom
|
|