Skip to content

Incorrect explanation for duplicate groups #424

Open
@lukedan

Description

@lukedan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions