Keep It Simple, Stupid | |
PerlMonks |
Re: Regex help neededby davido (Cardinal) |
on Apr 23, 2012 at 10:28 UTC ( [id://966572]=note: print w/replies, xml ) | Need Help?? |
Really, the critical component is to use a negated character class to match anythig that is not the delimiter, rather than relying on non-greedy specifications. If your Perl is old enough to not have named captures, this is equivilent code that is more universally compatible:
Update: Added /x and nicer formatting. Dave
In Section
Seekers of Perl Wisdom
|
|