Changing 6th numerical character by +1

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Changing 6th numerical character by +1

Postby RyanF » Thu Jun 30, 2016 9:19 am

I've got a load of unique filenames but I only want to change the 6th character (a number) by a factor of n+1. I've had a look on the FAQ guide and can't see anything. Can this be achieved?

Or perhaps is there a way of changing each instance of 1 to 2 on the 6th character?
RyanF
 
Posts: 1
Joined: Wed Jun 29, 2016 5:56 pm

Re: Changing 6th numerical character by +1

Postby therube » Thu Jun 30, 2016 11:25 am

1.RegEx
Code: Select all
Match:  (......)(.)(.*)
Replace:  \12\3

That may not be right?
At first I was reading it that in every case the 6th character /was/ a 1 & you just wanted to change that to a 2, but that might not be what you were saying? You might want it that /if/ the 6th character is a 1 ... ?
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Changing 6th numerical character by +1

Postby Admin » Fri Jul 01, 2016 7:59 am

Once the requirements are clear it can be done with Javascript renaming especially if 'if' are involved!
Admin
Site Admin
 
Posts: 2343
Joined: Tue Mar 08, 2005 8:39 pm


Return to BRU Support