Start and Stop Sequential Numbering

Bulk Rename Utility How-To's

Start and Stop Sequential Numbering

Postby wildfire1986 » Tue Apr 28, 2020 10:39 pm

Hello I am working with a large list of files that require sequential numbering as shown below:
name-2469 T1.ext
name-2469 T2.ext
name-2469 T3.ext
name-6981 T1.ext
name-6981 T2.ext

The problem that I am running into is that I have to select the 2 or 3 files in a set, rename that sequence then select the next set and rename those.
Is there a way for the utility to know that if the prefix matches then the numbering sequence needs to start over again?
wildfire1986
 
Posts: 1
Joined: Tue Apr 28, 2020 10:27 pm

Re: Start and Stop Sequential Numbering

Postby RegexNinja » Wed Apr 29, 2020 10:03 am

Hi.. What is the matching-prefix?? Is it: 4Digits, or 4Chars-4Digits, etc ??
This example assumes that you wish to number files beginning as: 4Chars-4DigitsAnyText
AND that you wish to replace AnyText with SpaceT# Too many assumptions so far, so I'll stop there.
Here's what could handle that scenario.. Cheers.

#12Filters:
Mask=^[a-z]{4}-\d{4}.+
Regex=Checked
F5/Refresh to apply the filter

#1Regex Match/Replace:
^([a-z]{4}-\d{4}).+$
\1

#10Numbering:
Mode=Suffix
Start=1
Incr=1
Sep= T
Break=6
Type=Base4

Results:
name-2469AnyText1 ---> name-2469 T1
name-2469AnyText2 ---> name-2469 T2
name-2469AnyText3 ---> name-2469 T3
name-6981AnyText1 ---> name-6981 T1
name-6981AnyText2 ---> name-6981 T2, etc
RegexNinja
 
Posts: 134
Joined: Fri Feb 21, 2020 5:26 pm


Return to How-To