Regular Expressions 101

Community Patterns

Match 4 groups of text independent of each other

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 - 5 years ago