Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for captures() in expandf() #133

Closed
mrabarnett opened this issue Dec 29, 2014 · 2 comments
Closed

support for captures() in expandf() #133

mrabarnett opened this issue Dec 29, 2014 · 2 comments
Labels
enhancement New feature or request trivial

Comments

@mrabarnett
Copy link
Owner

Original report by Anonymous.


I am doing a capture of repeating groups, for eventual substitution, and need the ability to reference specific captured values in substitutions and expansions (ie, expand/expandf).

Ideally, the format of the match expansion would be enhanced to differentiate between groups and captures, and within captures, specify an index, perhaps with a dot notation: Ie, {1.2} would match the second match of the first capture group.

@mrabarnett
Copy link
Owner Author

Original comment by Anonymous.


Can you give me an example of your use-case?

@mrabarnett
Copy link
Owner Author

Original comment by Anonymous.


Added in regex 2015.03.18.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request trivial
Projects
None yet
Development

No branches or pull requests

1 participant