Regular Expressions 101

Community Patterns

Match regex

1

Regular Expression
PCRE (PHP <7.3)

/
\?P<([a-zA-Z]+)>(([a-zA-Z0-9-_+*:?|\[\]!<>^(),\.\\]+)|(?R)?)\)
/
g

Description

Get from regex subpattern and its regex

Submitted by anonymous - 8 years ago