by jorbas on Mon Jan 28, 2013 6:19 pm
Is there a way to get view.replace() to use regex as it's replace? I have a plugin which will take multiple find and replace strings from a file and carry them out, view.find() will parse a regex string but view.replace() will just replace it literally, not taking into account things like "\1". I guess it doesn't work because the way it works is I'm selecting all the matches of the pattern and then replacing them with the replacement afterwards, even if it did parse regex it wouldn't know what "\1" referred to.