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

RegexSet replace #696

Closed
gahag opened this issue Jul 28, 2020 · 1 comment
Closed

RegexSet replace #696

gahag opened this issue Jul 28, 2020 · 1 comment

Comments

@gahag
Copy link

gahag commented Jul 28, 2020

Is there a reason for not having replace-like methods on RegexSet? If not, I would be willing to contribute an implementation based on Regex's.

@BurntSushi
Copy link
Member

Yes, there is a reason. Replace APIs require finding the offset of matches, and the implementation doesn't support that, as stated in the docs.

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

2 participants