SyntaxFix
Write A Post
Hire A Developer
Questions
This is what you are looking for:
^((?!(abc|def)).)*$
the explanation is here: Regular expression to match a line that doesn't contain a word?