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

Replace with submatch(backreference) is not working #23

Open
fujimura opened this issue Apr 5, 2022 · 0 comments
Open

Replace with submatch(backreference) is not working #23

fujimura opened this issue Apr 5, 2022 · 0 comments

Comments

@fujimura
Copy link
Owner

fujimura commented Apr 5, 2022

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

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