Regular Expressions 101

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^(?i)(?!.*foo.*$).+
/
gm

Description

You want to match 4 groups of text where group 1 is exact, group 2 is anything, group 3 is exact, group 4 is anything

Submitted by anonymous - 6 years ago