I am stumped trying to create an Emacs regular-expression that excludes groups. [^]
excludes individual characters in a set, but I want to exclude specific sequences of characters: something like [^(not|this)]
, so that strings containing "not" or "this" are not matched.
In principle, I could write ([^n][^o][^t]|[^...])
, but is there another way that's cleaner?