So what tools, tips, and tricks of the trade do you have to share for these rare occassions you need to write a regex that matches everything another regex doesn't?/^(?!(?s:.*)$regex)/
:-)
Caveat: Only useful in a boolean context.
print "Just another Perl ${\(trickster and hacker)},"
The Sidhekin proves Sidhe did it!
In reply to Re: Negating Regexes: Tips, Tools, And Tricks Of The Trade
by Sidhekin
in thread Negating Regexes: Tips, Tools, And Tricks Of The Trade
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |