Open
Description
For this expression: (?|a(b)(c))\2
, (b)
is the first captured group, while (c)
is the second captured group. This expression would match abcc
. However, the explanation given by regexr says that both are capturing group 1, and indicates that group 2 does not exist. This is not consistent with PCRE rules.