regulárny výraz neobsahujú
^((?!word).)*$
// Test
/^((?!word).)*$/gi.test('Should not contain word') // Returns false
/^((?!word).)*$/gi.test('John Doe') // Returns true
Regulárny výraz nie obsahuje
^((?!hede).)*$
regulárny výraz nie obsahuje
^(?!keyword).*\n // Regex pattern to find lines that do not contain keyword, incl newline