regex não contém
^((?!word).)*$
// Test
/^((?!word).)*$/gi.test('Should not contain word') // Returns false
/^((?!word).)*$/gi.test('John Doe') // Returns true
florinrelea
^((?!word).)*$
// Test
/^((?!word).)*$/gi.test('Should not contain word') // Returns false
/^((?!word).)*$/gi.test('John Doe') // Returns true
//Author: Mohammad Arman Khan
//Regular Expression should not contain Special Characters
var regex = /^[A-Za-z0-9 ]+$/;
^((?!hede).)*$
^(?!keyword).*\n // Regex pattern to find lines that do not contain keyword, incl newline