Regex not contains

Code examples

1
0

regex do not contain

^((?!word).)*$

// Test
/^((?!word).)*$/gi.test('Should not contain word') // Returns false
/^((?!word).)*$/gi.test('John Doe') // Returns true
1
0

Regex not contains

^((?!hede).)*$
0
0

regex not contains

^(?!keyword).*\n // Regex pattern to find lines that do not contain keyword, incl newline

Similar pages

Similar pages with examples

In other languages

This page is in other languages

Русский
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................