RegExp batch rename
Posted: 29 Aug 2022 15:32
Hi everybody
I got a folder containing the following files :
filename (1).txt
...
filename (9).txt
filename (10).txt
...
filename (19).txt
Using XYplorer, I wanted to batch rename some files so (1) to (9) become (01) to (09)
This is the menu option and the pattern I tried : File => Rename Special => RegExp Rename...
(.*\()(\d\)\..*) > $10$2
It seems to work and filename(1).txt became filename(01).txt ... filename(9).txt became filename(09).txt ... other files names remained untouched (as they already got 2 digits)
Could you please share your opinion about this, in case there is another way to do it ?
Thanks
I got a folder containing the following files :
filename (1).txt
...
filename (9).txt
filename (10).txt
...
filename (19).txt
Using XYplorer, I wanted to batch rename some files so (1) to (9) become (01) to (09)
This is the menu option and the pattern I tried : File => Rename Special => RegExp Rename...
(.*\()(\d\)\..*) > $10$2
It seems to work and filename(1).txt became filename(01).txt ... filename(9).txt became filename(09).txt ... other files names remained untouched (as they already got 2 digits)
Could you please share your opinion about this, in case there is another way to do it ?
Thanks