Skip to content

Incorrect regex pattern in regex_replace_posix_groups #19766

Closed

Description

@shivbhatia10

Describe the bug

The regex_replace_posix_groups method should replace patterns like \4 with ${4} but it's using the pattern (\\)(\d*) instead of (\\)(\d+).

To Reproduce

I added a test in the fix PR which replaces some pattern with "\", currently this produces "${}" which is how I came across this bug.

Expected behavior

Should just replace the pattern with ""

Additional context

No response

Activity

  1. added theissue type on Jan 12, 2026
  2. GaneshPatil7517 commented on Jan 14, 2026

    @GaneshPatil7517
    Contributor

    take

  3. GaneshPatil7517 commented on Jan 15, 2026

    @GaneshPatil7517
    Contributor

    hey @shivbhatia10 can you review this : #19827

  4. added a commit that references this issue on Feb 24, 2026
    b8cebdd
  5. added a commit that references this issue on Mar 24, 2026
    c18e121
  6. added a commit that references this issue on Apr 6, 2026
    646ace3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions