Regular Expressions 101

Community Patterns

Gitlab GraphQl query finder

1

Regular Expression
PCRE2 (PHP >=7.3)

/
(?'entity'\b(?!group\b)\w+)(?'filter'\(\w*:["\w*\/\-) ]*)? ?{
/
mg

Description

Searches for the first list element in a graphql query, which allows for filtering and pagination, except for the group node

Submitted by Thomas Luijken - 3 years ago