Regular Expressions 101

Community Patterns

Matches when the string does not contain an exact word

0

Regular Expression
PCRE (PHP <7.3)

/
^(?!.*(word).*$)([^\n]*)
/
ms

Description

no description available

Submitted by anonymous - 10 years ago