Regular Expressions 101

Community Patterns

Find GraphQL queries with missing id

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 - a year ago