Skip to content

[Feature]: Enhance strFind()s related getGroup...() functions to support regex named capture groups. #5959

@Baaaaaz

Description

@Baaaaaz

Describe the Problem

While 'strFind()' can take named capture groups, the related getGroup...() functions do not support them. Being able to using named capture groups will make consuming regex matches easier.

The Solution you'd like

strFind()s related getGroup...() functions to support named regex capture groups.

Also new function to return an array of the named regex capture groups in the pattern/matcher, in the order in which they are specified.

Alternatives that you've considered.

Just living with numbered regex capture groups.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAdding functionality that adds value

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions