Does BRU have "natural sort"?
1,2,3,...9,10,11
rather then,
1,10,11,2,3,...9
Must your files maintain their names, only be padded with 0's?
I'm thinking, yes, they must.
So that means that 10:Numbering will not work for you.
(Even if you used 10:Numbering in "chunks"; 1-9, then 10-99, the file names would still need to be consecutive - in other words, there cannot be an missing numbers in the series cause that would change the corresponding file name such that it would no longer match up with the correct "movie". If you had; 10, 11, 13, a rename would make them; 010, 011, 012, to 13 becomes 012, which would not be wanted.)
Can you do it with 1:RegEx?
Not sure, at least I wouldn't know how to go about it?
(Pretty sure there are batch file methods to pad file names & maybe you could start with that & figure a RegEx to do it?)
This is beyond me,
https://www.google.com/search?q=regex+pad+a+number+with+0&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:unofficialJavaScript rename would do it, but I don't know JS.
Similar in BASIC:
- Code: Select all
ENTER X$,LENGTH
IF LEN(X$)<LENGTH THEN DIM ZERO$(LENGTH,"0")
LET X$=ZERO$(1,LENGTH-LEN(X$))+X$