#1 2020-07-27 00:51

Dr_Eng_X
Member
Registered: 2020-07-27
Posts: 2

Rename from Text numbers to Numbers Text

I know this is a simple rename but I am a new user and I did not find a similar question or answer to it. I will explain the details more.
Original file names are some characters then a number the characters might have space in them the numbers are not the same number of digits.
Examples of original file names:
Dragonfly Express 52
Edgar the fearless 40
Judge Beeswax 7
xxxx xxx -xxx02

To be renamed to:
052-Dragonfly Express
040-Edgar the fearless
007-Judge Beeswax
xxxx xxx -xxx02

Thanks in advance

Last edited by Dr_Eng_X (2020-07-27 09:53)

Offline

#2 2020-07-27 06:15

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,046

Re: Rename from Text numbers to Numbers Text

Hi and welcome Dr_Eng_X .

Dr_Eng_X wrote:

I know this is a simple rename but I am a new user and I did not find a similar question or answer to it. I will explain the details more
Original file names are some characters then a number the characters might have space in them the numbers are not the same number of digits
Original file names


Do you know something about punctuation? It would be nice if you would
be that kind to use some of them in your communication with us, thank you.
In particular some dots here and there would help to make your help request much more readable.


FROM:
Dragonfly Express 52
Edgar the fearless 40
Judge Beeswax 7
xxxx xxx -xxx02
TO:
052-Dragonfly Express
040-Edgar the fearless
007-Judge Beeswax
xxxx xxx -xxx02

I would use as first step a RegEx rule to rearrange the number:
https://www.den4b.com/wiki/ReNamer:Rules:RegEx
Expression: ^(.+?)\s(\d+)$
Replace: $2-$1

and as second rule the "Padding" rule: add zero padding to length 3


HTH?


Please see HELP and MANUAL in Wiki for more info.
If ReNamer had helped you, please donate a coin to Denis or buy a Pro license for commercial use. (Lite vs Pro)

Offline

#3 2020-07-27 09:51

Dr_Eng_X
Member
Registered: 2020-07-27
Posts: 2

Re: Rename from Text numbers to Numbers Text

Stefan wrote:

Hi and welcome Dr_Eng_X .

Do you know something about punctuation? It would be nice if you would
be that kind to use some of them in your communication with us, thank you.
In particular some dots here and there would help to make your help request much more readable.

HTH?

Sorry, I am very bad in writing. I have failed it.
Your solution worked perfectly.
Thanks again

Offline

Board footer

Powered by FluxBB