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
With grep, you can use --invert-match or -v.
--invert-match
-v