Page 1 of 1

Named regular expressions for file rename

Posted: 24 Feb 2024 01:38
by Balok
I have certain files I rename the same way (regular downloads, mostly). It would be helpful if it were possible to attach a name to the regular expression I use for this, so that I can more easily find it again.

Re: Named regular expressions for file rename

Posted: 24 Feb 2024 02:38
by jupe
If you lookup regexreplace in the advanced topics\scripting commands section of the help file, you'll see that the first example demos the syntax required to attach comments/name to your pattern, and the same works in RegExp Rename..

Re: Named regular expressions for file rename

Posted: 26 Feb 2024 01:54
by Balok
Thanks. This looks like it'll do what I need...

Re: Named regular expressions for file rename

Posted: 26 Feb 2024 10:14
by matewo
Hi Balok,

have you also considered using a user script (User-defined Commands, UDC) for your recurring rename activities? Please see help file chapter 3.7 User (page 199 in current PDF file).

Best regards, Markus

Edit: name corrected, please excuse!