Renaming files to remove a (-) and leading zero's

Advanced Renamer forum
#1 : 04/10-20 17:13
Chris
Chris
Posts: 1
Hello. I have files named R-001, R-002, etc...

I would like to rename them R1, R2, R3....etc

Remove the dash and leading zero's but keep the "R"

Any help would be greatly appreciated.

Thank you!


04/10-20 17:13 - edited 04/10-20 17:15
#2 : 04/10-20 17:49
Styb
Styb
Posts: 80
Reply to #1:
1) Disable the "Use zero padding in Inc Nr tags" option in the program settings, see picture:

https://i.postimg.cc/gjjgqR40/Image-10.jpg

2) Use the New Name method and digit R<Inc Nr:1> , see picture

https://i.postimg.cc/xjBZypDD/Image-11.jpg


04/10-20 17:49 - edited 04/10-20 17:50
#3 : 04/10-20 18:29
David Lee
David Lee
Posts: 1125
Reply to #1:
Assuming numbers all have only one significant digit (ie numbers in range 001 to 009)
Replace method...
Replace: -00
With: nothing
Leave options unchecked

Otherwise (ie numbers in range 001 to 999)
Replace method...
Replace: -0*
With: nothing
Use regular expressions

Edit...
To be more general and only match numbers at the end of the filename:
Replace: -0*(?=\d*$)


04/10-20 18:29 - edited 05/10-20 12:58