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.
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: https://github.com/nitely/nregex/pull/4