Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
PCRE (PHP <7.3)

/
^((?:(?!PATTERN).)*)$
/

Description

Capture the input if the pattern is NOT found

Submitted by Byron Jones - 9 years ago