RegReplace uses the python re engine (mainly because the ST find API is very awkward for RegReplace to access due to the way RegReplace works, and I didn’t want to use the ST API in half of the code, and re in the other half).
[quote=“vitaLee”]I have the following usecase:
find hex colors with uppercase letters: #([A-F\d]+)
replace uppercase letters with lower ones: #\L$1\E [/quote]
RegReplace, since it uses re, requires groups to be specified as \1 not $1. So, #\L\1\E would be more appropriate (in a string you would obviously escape the slashes).
But you still won’t get your desired effect because re does not support Oniguruma.
I can see the desire to use Oniguruma though…maybe down the line I can implement this with a third party package like github.com/mitsuhiko/ponyguruma, or at the very least create some kind of system to allow users to write scripts to manipulate the regex groups format on replace.
Hopefully, that answered your questions, and while I don’t have an immediate fix to allow you to do what you want, maybe down the line. Feel free to make this suggestion on Github at the RegReplace repo.