How to increase the number in filename by 1

A swapping-ground for Regular Expression syntax

How to increase the number in filename by 1

Postby danshaw » Sun Nov 09, 2014 7:53 pm

Hi all

We have a folder of files named incrementally i.e.

set1.xml
set2.xml
set3.xml

right up to 200. I wondered if it is possible using this tool to select a bunch of these files and then have it increase the number in the filename by 1.

So with my small example above, if I were to select set2.xml and set3.xml and run the process, I would end up with the following files:

set1.xml
set3.xml
set4.xml

Basically it is to enable me to insert a new file as set2.xml and push everything else upwards to make room for it

Thanks a lot for any help, it would be much appreciated.
D
danshaw
 
Posts: 1
Joined: Sun Nov 09, 2014 7:47 pm

Return to Regular Expressions