![]() |
|
more useful options | |
PerlMonks |
Re^3: Regex to get everything before first /by ikegami (Pope) |
on Jun 06, 2011 at 22:12 UTC ( #908377=note: print w/replies, xml ) | Need Help?? |
It fails poorly when there's a problem because the /.*?/ in /.*?// can match "/". It's only indirectly through co-operation with the rest of the pattern that it might be prevented from doing so. I prefer being more direct and explicitly prevent what should not be matched from matching.
In Section
Seekers of Perl Wisdom
|
|