Rename folder number by sets

A swapping-ground for Regular Expression syntax

Rename folder number by sets

Postby millhouse2000 » Fri Jun 09, 2017 5:08 pm

i have folders with files named 0001 to 0478
and i need them renumber in sets of 9, 12, and 13
so i want 100 to 113 then go to 200 to 209 or 213
if you can help that would be great
millhouse2000
 
Posts: 2
Joined: Fri Jun 09, 2017 5:04 pm

Re: number by sets

Postby Admin » Sat Jun 10, 2017 3:44 am

Hi, which folder becomes which?
Admin
Site Admin
 
Posts: 1465
Joined: Tue Mar 08, 2005 8:39 pm

Re: Rename folder number by sets

Postby millhouse2000 » Sat Jun 10, 2017 6:15 pm

each folder has a couple hundred files named 0001 - 0400
but i need to group the files so tha one folder goes up in 9s (100-109,200-209,...),
one folder by 12s (100-112,200-212,...)
and one by 13s (100-113,200-213,...)
millhouse2000
 
Posts: 2
Joined: Fri Jun 09, 2017 5:04 pm

Re: Rename folder number by sets

Postby KenP » Sat Jun 10, 2017 7:16 pm

I don't think there's any realistic way to do this with regex.

Have a look at Numbering (10) where you can set the increment to 9, 12 or 13, but you will need to do each folder individually.
KenP
 
Posts: 193
Joined: Sat Jul 30, 2016 11:25 am


Return to Regular Expressions