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

Capture the last group repetition by default #100

Closed
nitely opened this issue Jan 21, 2021 · 1 comment
Closed

Capture the last group repetition by default #100

nitely opened this issue Jan 21, 2021 · 1 comment

Comments

@nitely
Copy link
Owner

nitely commented Jan 21, 2021

Capturing all group repetitions (even if there are no repetitions) makes the matching take unbounded space. I think it'd be better to capture only the last group repetition, as that's what most regex engines do. We could support both features, and make capturing the last repetition the default, or maybe the only option.

Related: nitely/nregex#4

@nitely
Copy link
Owner Author

nitely commented Aug 13, 2023

done in #111

@nitely nitely closed this as completed Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant