Replace specific last number with another

Advanced Renamer forum
#1 : 15/05-14 10:08
Brent
Brent
Posts: 2
I would love some help with the following challenge.

I have a long list of files named in the following order.

File names are numeric and only 4 numbers long. Last number is constant and will always either be a 1,2 or 3. First 3 numbers vary.

1011.x
2012.x
1021.x
5063.x
1072.x
6073.x

My challenge is to rename only the last number to a different set, keeping the first 3 numbers intact.

IE all the number ###3 -> ###2

Any help would be appreciated.



15/05-14 10:08
#2 : 15/05-14 12:00
Brent
Brent
Posts: 2
Reply to #1:

Managed to muster together a solution. Might not have been the best way but created a csv file.
Used ASAP Utilities in Excel to break down the name to the last char. Replaced the number required.
Copied back the first 3 char of the name and merged them back.

Loaded the csv in Advanced Renamer and the rest is history.
Long winded but it got the job done for anyone interested.


15/05-14 12:00
#3 : 20/05-14 12:37
Stefan
Stefan
Posts: 274
Reply to #1:

>> IE all the number ###3 -> ###2


Perhaps with Replace method
(http://www.advancedrenamer.com/user_guide/metho d_replace)


Replace: (\d\d\d)3
With: \12
[X] RegEx



########## ########## ##########


all the number ###2 -> ###1

Replace: (\d\d\d)2
With: \11
[X] RegEx


########## ########## ##########


all the number ###1 -> ###3

Replace: (\d\d\d)1
With: \13
[X] RegEx



.


20/05-14 12:37