more useful options | |
PerlMonks |
Re: User regexpsby ysth (Canon) |
on Jan 14, 2004 at 15:49 UTC ( [id://321277]=note: print w/replies, xml ) | Need Help?? |
As long as you are not blindly interpolating into a string
eval (e.g. eval ".../$re/...", you can just set an alarm to guard against maliciously time-consumptive regex's and you should be ok.
Abigail's is nice, but I prefer $matchtext =~ /^(?!.*foo)/
In Section
Seekers of Perl Wisdom
|
|