iter-tools / regex

A streaming regex evaluation engine
MIT License
11 stars 1 forks source link

Feature: replace #39

Open conartist6 opened 2 years ago

conartist6 commented 2 years ago

We should support the JS API for replacement so that the engine can be used to modify streams on the fly.

conartist6 commented 2 years ago

Actually there's probably an argument to be made for designing an API from scratch, and then perhaps implementing the JS API as an overlay onto it. I think this is one of those things that can be made a bit more idiomatic in the iterable paradigm, probably by just handing control of generation of output over to another generator whose argument is the match.