Page 1 of 1

Changing 6th numerical character by +1

PostPosted: Thu Jun 30, 2016 9:19 am
by RyanF
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?

Re: Changing 6th numerical character by +1

PostPosted: Thu Jun 30, 2016 11:25 am
by therube
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 ... ?

Re: Changing 6th numerical character by +1

PostPosted: Fri Jul 01, 2016 7:59 am
by Admin
Once the requirements are clear it can be done with Javascript renaming especially if 'if' are involved!