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
Multi-rename regex replace
Re: Multi-rename regex replace
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
I did not find this in the documentation.
See screenshot
https://1drv.ms/u/s!AjfndlER36u2hdkxZEB ... A?e=TIcLPL
Re: Multi-rename regex replace
Solution to my previous post :
Search for : (\()(\d\))
Replace with : (0$2
Tick "regular expression"
Search for : (\()(\d\))
Replace with : (0$2
Tick "regular expression"
Re: Multi-rename regex replace
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.Solution to my previous post :
Search for : (\()(\d\))
Replace with : (0$2
Tick "regular expression"
Re: Multi-rename regex replace
Thanks from me too!
Who is online
Users browsing this forum: Bing [Bot] and 59 guests