regex 을 포함하지 않습
^((?!word).)*$
// Test
/^((?!word).)*$/gi.test('Should not contain word') // Returns false
/^((?!word).)*$/gi.test('John Doe') // Returns true
Regex 포함하지
^((?!hede).)*$
regex 포함하지
^(?!keyword).*\n // Regex pattern to find lines that do not contain keyword, incl newline