m-ender / retina

A regex-based programming language.
MIT License
231 stars 10 forks source link

Support multiple pattern/replacement pairs in Replace mode #12

Closed m-ender closed 9 years ago

m-ender commented 9 years ago

In Replace mode it could be useful to specify multiple pattern/replacement pairs.

In normal Replace mode these would just be applied in order, so you could specify a multi-step replacement.

In looped Replace mode (+) one could either cycle through the pairs, or could apply all of them in each loop iteration (it would only make a difference for the terminating condition). Alternatively, one could make it even more elaborate and specify a number of replacements to be carried out first, then a number to be looped through, and then a number to be carried out once the loop terminates.

m-ender commented 9 years ago

The more elaborate part of this issue has been deferred to #15.