Skip to content

Replace with submatch(backreference) is not working #23

@fujimura

Description

@fujimura

git-gsub is using regexp package for replacing string, which depends on re2 and re2 doesn't support submatch.

Replacing with submatch is undocumented(yet partially test) feature, but I hope this to be supported officially.

Failing test case can be seen in #22.

regexp package - regexp - pkg.go.dev
Syntax · google/re2 Wiki

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions