This project is read-only.

RxFind should replace the longest match it finds


For example, if I have a text "11221122112211221122", I might have the regex "(1122)+" that I wish to replace it to "33".
If so, there are two options:
  1. I might wish to change the entire text (the longest match) to "33"
  2. On contraire, I might wish to replace every "1122" to "33" (the shortest match).
    Right now, only the second option is applied.
    I think you should insert an argument that differs one mode from the second. Default, to my opinion, dhould be the longest match.