Definition Group(?(DEFINE)
(?P<elt>
[^,()]*+
(?:
\( (?&elt) (?: , (?&elt) )* \)
[^,()]*
)*+
)
) Group elt(?P<elt>
[^,()]*+
(?:
\( (?&elt) (?: , (?&elt) )* \)
[^,()]*
)*+
) Negated Character Class[^,()]*+ *+matches any number of characters outside the set below:
,the literal , (4410 / 548 / 2C16)
(the literal ( (4010 / 508 / 2816)
)the literal ) (4110 / 518 / 2916)
Non-Capturing Group(?:
\( (?&elt) (?: , (?&elt) )* \)
[^,()]*
)*+ *+repeats the group contents below any number of times:
\(the literal ( (4010 / 508 / 2816)
(?&elt)calls group elt as a subroutine
Non-Capturing Group(?: , (?&elt) )* *repeats the group contents below any number of times:
(?&elt)calls group elt as a subroutine
\)the literal ) (4110 / 518 / 2916)
Negated Character Class[^,()]* *matches any number of characters outside the set below:
,the literal , (4410 / 548 / 2C16)
(the literal ( (4010 / 508 / 2816)
)the literal ) (4110 / 518 / 2916)
FOOthe literal text FOO (case sensitive) \(the literal ( (4010 / 508 / 2816)
\s*any whitespace character, repeated any number of times
Group elt1(?P<elt1> (?&elt) ) (?&elt)calls group elt as a subroutine
, the literal text ,
\s*any whitespace character, repeated any number of times
Group elt2(?P<elt2> (?&elt) ) (?&elt)calls group elt as a subroutine
, the literal text ,
\s*any whitespace character, repeated any number of times
Group elt3(?P<elt3> (?&elt) ) (?&elt)calls group elt as a subroutine
\)the literal ) (4110 / 518 / 2916)
g modifier: global. Finds all matches instead of stopping after the first
x modifier: extended. Ignores unescaped whitespace and comments outside character classes