Padding chapter numbers

Bulk Rename Utility How-To's

Padding chapter numbers

Postby goku90504 » Fri Nov 03, 2023 5:52 pm

My issue seems really similar to viewtopic.php?f=12&t=6239&start=0&hilit=pad this one but I'm having trouble figuring out how to adjust it to make it work for me
I've got folders currently named
Ch 1
Ch 2
...
Ch 9
Ch 10
Ch 11
...
Ch 99
Ch 100
Ch 101
...
Ch 220
of course when I open BRU to the folder containing these folders it brings them up in this order
Ch 1
Ch 10
Ch 100
Ch 101
Ch 102
ETC...
I want to pad the numbers to 3 digits with leading 0's
I don't mind removing the Ch space at the start of the folder numbers as I can just add those back later but I stil can't figure out how to pad the numbers without the paid JS feature
goku90504
 
Posts: 3
Joined: Fri Nov 03, 2023 5:18 pm

Re: Padding chapter numbers

Postby goku90504 » Fri Nov 03, 2023 6:39 pm

Well the trick turned out to not be RegEx but add, filter, trim
Maybe I could have done it more efficiently but what I ended up doing was replacing 'Ch ' with '00' then I filtered for Name Min of 5 characters and removed the first character then filters for Name Min of 4 characters and removed the first character again then I added 'Ch ' again as a prefix
goku90504
 
Posts: 3
Joined: Fri Nov 03, 2023 5:18 pm


Return to How-To