sed – How to Match a Group Exactly Zero Times
I am trying to match lines that do not contain a sequence of characters using sed. According to the sed documentation (https://www.gnu.org/software/sed/manual/sed.html), you use ()
in sed when using the ERE (-E option) to create groups and then {}
to capture repetition of the preceding token. However, I want to match lines that do not contain this group (which also includes other things that I want to match).