Regular Expressions 101

Community Patterns

Regex Include & Exclude

-3

Regular Expression
PCRE (PHP <7.3)

/
^((?!.*email).)*thank(\-|\_|)you.*
/
gi

Description

Exclude part of a string in an include string.

Submitted by anonymous - 8 years ago