Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

regex do not contain

^((?!word).)*$

// Test
/^((?!word).)*$/gi.test('Should not contain word') // Returns false
/^((?!word).)*$/gi.test('John Doe') // Returns true
 
PREVIOUS NEXT
Tagged: #regex
ADD COMMENT
Topic
Name
6+3 =