There's more than one way to do things | |
PerlMonks |
Re: Why is this regex greedy?by chromatic (Archbishop) |
on Jul 02, 2004 at 20:32 UTC ( [id://371502]=note: print w/replies, xml ) | Need Help?? |
The regex engine prefers leftmost, longest matches. Nothing in your regex prevents it from matching everything between the first slash and the end of line.
In Section
Seekers of Perl Wisdom
|
|