Regular Expressions 101

Community Patterns

Community Library Entry

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