Regular Expressions 101

Community Patterns

Regex Group Regex

0

Regular Expression
PCRE (PHP <7.3)

/
(?P<group_definition> \( (?P<options>[^\:\>\s\(\)]*[\:\>])? (?P<pattern> (?:[^\)\(]*(?R)*)* ) \) (?P<quantifier> (?:[\*\+\?])| (?: \{(?P<min>\d*) (?: , (?P<max>\d*)? )? \} ) )? )
/
imxg

Description

Working on this regex so that I can use it to parse regular expressions and get the group info from them

Submitted by jparish1977@gmail.com - 9 years ago