Regular Expressions 101

Community Patterns

how to match for a word not to be in the input

0

Regular Expression
PCRE2 (PHP >=7.3)

/
^((?!Not)Funny)*$
/
gm

Description

Not Funny vs Funny - need to match for both cases

Submitted by anonymous - 2 years ago