m-ender / retina

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

Replace mode parameter: limit number of replacements #2

Closed m-ender closed 8 years ago

m-ender commented 9 years ago

In the simplest case this could just be a fixed "replace first" flag, but it's probably more useful if any number of replacements can be specified.

This option would be independent of + and would specify the number of replacements per iteration.

m-ender commented 8 years ago

A generalised version of this has been implemented in d2e9a9a5dd64bb5ee1017447a02de7e67e7dfb2d.