Closed Turiok closed 11 months ago
Hi, The app uses basic Javascript Regexp but it is limited because the "replace" string is sanitized before passing it to Regexp to prevent broken filenames and keep things simple, so capturing string fragments is not supported right now. I'll consider reworking this for the next version.
Thank you for trusting my app.
I took a deeper look and moved sanitizing to the end of the renaming loop like it should. Now find-replace works properly, allowing group capturing. There is a new release with the fix.
Hi and thank you for your app.
I try to use the regex find and replace for my file. I tried to capture digit to reuse it in the substitue but it seems to not working. How can I do that?
Exemple : My goal is to put a space between the "T" and the digit.
My files :
My find regex :
T(\d+)
My replace tentative :
T $1
T \1
T (?1)
I know that I could delete all characters until the numbers then add a prefix and number. But I have other files more complexe. So I would like to use capture groupe for my regex search to the replace