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

<regex>: Do not reset matched capture groups in POSIX regexes #5377

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

muellerj2
Copy link
Contributor

Towards #5365. Fixes the behavior for POSIX regexes: Section 9.3.6 says that backreferences always refer to the last matched string if a capture group/subexpression has been matched more than once, so captures should not be cleared during matching at all.

@muellerj2 muellerj2 requested a review from a team as a code owner March 28, 2025 19:36
@StephanTLavavej StephanTLavavej added bug Something isn't working regex meow is a substring of homeowner labels Mar 29, 2025
@StephanTLavavej StephanTLavavej self-assigned this Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working regex meow is a substring of homeowner
Projects
Status: Initial Review
Development

Successfully merging this pull request may close these issues.

2 participants