tyre icon indicating copy to clipboard operation
tyre copied to clipboard

Provide a way to replace

Open EmileTrotignon opened this issue 1 year ago • 1 comments

I love this library, this really seems like the right way to do regexp.

However, I had a usecase where I needed to do a search-and-replace, and I found no way to do it. I had to ideas to build it, one being a not combinator to capture everything I don't need to replace, but it does not exists. I also did not find a way to get locations from a match, which would allow replacement.

Since it exists in Re, it would probably not be hard to construct.

EmileTrotignon avatar Nov 08 '24 21:11 EmileTrotignon