Multi-rename regex replace

Discussion, questions and support.
Post Reply
Message
Author
JPL75
Posts: 16
Joined: 05.08.2020, 14:28

Multi-rename regex replace

#1 Post by JPL75 » 30.09.2020, 13:43

Hello,

I am trying to use multirename regex capability.

I am able to create a regex for the "search for:" field, but I am not able to reuse the "match" in the "search for:" to build the "replace with: expression.

What I want to do ? I have files which end with "(" digit1 ")" and files which end with "(" digit1 digit2 ")". I want to rename the ones with one digit into "(" 0 digit1 ")".

I am able to select the files with 1 digit, but cannot reuse this digit into the replace field.

Help will be appreciated.
Jean-Pierre

JPL75
Posts: 16
Joined: 05.08.2020, 14:28

Re: Multi-rename regex replace

#2 Post by JPL75 » 28.11.2020, 10:58

I finally discovered through another forum post that $ followed by a digit, can be used in "replace with" to reuse the matched expression.
I did not find this in the documentation.

See screenshot
https://1drv.ms/u/s!AjfndlER36u2hdkxZEB ... A?e=TIcLPL

JPL75
Posts: 16
Joined: 05.08.2020, 14:28

Re: Multi-rename regex replace

#3 Post by JPL75 » 28.11.2020, 11:01

Solution to my previous post :
Search for : (\()(\d\))
Replace with : (0$2
Tick "regular expression"

dvb
Posts: 4
Joined: 05.06.2021, 08:38

Re: Multi-rename regex replace

#4 Post by dvb » 05.06.2021, 09:49

Solution to my previous post :
Search for : (\()(\d\))
Replace with : (0$2
Tick "regular expression"
Thanks for this. I needed to reformat the date from [exift_DateTimeOriginal] for some .MOV files and chop of the hh-mm-ss portion, but the \x style backreferences weren't working. Your post got me on the right track. 👍

vodoomoth
Posts: 23
Joined: 06.04.2011, 22:39

Re: Multi-rename regex replace

#5 Post by vodoomoth » 14.11.2021, 16:54

Thanks from me too!

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 38 guests