Keep It Simple, Stupid | |
PerlMonks |
Re: A NOT in regular expressionsby rruiz (Monk) |
on May 14, 2003 at 02:56 UTC ( [id://257958]=note: print w/replies, xml ) | Need Help?? |
You don't post your regular expression for us to take a look at it, but I think that you need to use the non greedy operator '?' in your re. Like:
Which makes the re to take the shortest match. HTH
In Section
Seekers of Perl Wisdom
|
|