Skip to content

Regex source generator should include capture group name in comment #62715

@stephentoub

Description

@stephentoub

Given an expression like:

"^(?<LINE>[0-9]*)-(?<ENDLINE>[0-9]*)$"

the regex source generator will output comments for the groups like:

// 1st capturing group

We should include the name if one exists, e.g.

// 1st capturing group ("LINE")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions