Regular Expressions 101

Community Patterns

Match text portion and text on either side

0

Regular Expression
PCRE (PHP <7.3)

/
.*@company-gherkin:.*
/
g

Description

You want to match a portion of text in a string, and either want or don’t mind also matching the text either side of the text portion

Submitted by anonymous - 5 years ago