Is it possible to write a regex that returns the converse of a desired result? Regexes are usually inclusive - finding matches. I want to be able to transform a regex into
In perl you can anti-match with $string !~ /regex/;.
$string !~ /regex/;