Problems? Is your data what you think it is? | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I was experimenting with this and came up with the following .
This strategy uses (??{ code }) to evaluate the current string against the regex you wish to negate. If the pattern matches it returns a regex that matches an empty string. Otherwise it returns a regex that matching anything. I'm not sure how safe this strategy is though. Can someone who knows more about perl's regex engine comment on whether the above is appropriate? In reply to Re: Negating Regexes: Tips, Tools, And Tricks Of The Trade
by imp
|
|