Feature request: Renumber needs a Backwards option

It would be nice to be able to specify the number position backwards.

I want to accomplish the following:

1 file 1.txt --> 1 file 01.txt
2 file 2.txt --> 2 file 02.txt
file 4.txt --> file 04.txt

For this I need to be able to specify, that the 1st number backwards needs to be targeted.


Hi Adrian,

I don't really understand what you are trying to do, but can't you just click on the "Filename" column header and reverse the order of the files?

Best,
DF
Reply to #2:

No. He wants to reformat the *last* number in a filename that might have a variable quantity of numbers before it.

So, the bestest way is for the renumber method to have a "backwards" option or to honor "Number position" settings like -1, etc.

It is a good feature request.

Of course there are several ways to work around this using JavaScript, but not as simple and elegant.
Reply to #3:

Ah, thank you Obe Wan, now I understand! :)

Given the examples you could use a replace method:

R: (\d+)$
RW: 0$1
Regex: Yes

EDIT2: If more than 9 files, make the Replace:
R: field \D\K(\d)$
RW: 0$1
END EDIT2

But you guys are right, "backwards" number would be great in renumber, EDIT3: because what if there were more than two numbers and you wanted the *second* from the end, for instance.END EDIT3
EDIT Or the "Handle negative numbers" could be extended to the "Number position" field... END EDIT