Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
^\s*product \{\n\s*.*(?<!id)$
/
gm

Description

It detects the following product { brand

and ignores product { id

Submitted by anonymous - 2 years ago