Multi rename for filenames with long dates in italian

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
damjang
Senior Member
Senior Member
Posts: 215
Joined: 2003-10-09, 15:58 UTC
Contact:

Multi rename for filenames with long dates in italian

Post by *damjang »

Hi to all!
I'm asking here if there is a possibility with multi rename tool (and maybe with help of other plugins) to deal with long dates (in my case in italian) in filenames. The problem are specially the month names..

I have a lot of files like this:

Code: Select all

Document two 01 Marzo 2024.pdf
Documento uno 01 Dicembre 2023.pdf
Due Prova 18 Febbraio 2024.pdf
La Prova di doc 03 Novembre 2023.pdf
Prova 02 Marzo 2024.pdf
and want to "decode" the dates at the filename ends to iso dates to write at the beginning of the filename. Eg. the upper filenames should become like this:

Code: Select all

2024-03-01 Document two 01 Marzo 2024.pdf
2023-12-01 Documento uno 01 Dicembre 2023.pdf
2024-02-18 Due Prova 18 Febbraio 2024.pdf
2023-11-03 La Prova di doc 03 Novembre 2023.pdf
2024-03-02 Prova 02 Marzo 2024.pdf
Thanks for any help!
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Multi rename for filenames with long dates in italian

Post by *white »

Something like this for example:

Code: Select all

Search for:   .*(\d\d) (Gennaio|Febbraio|Marzo|Aprile|Maggio|Giugno|Luglio|Agosto|Settembre|Ottobre|Novembre|Dicembre) (\d\d\d\d)
Replace with: $3-$2-$1 $0

[X] Regex
Start renaming
Load rename results (F5)
Then do this:

Code: Select all

Search for:   -Gennaio-|-Febbraio-|-Marzo-|-Aprile-|-Maggio-|-Giugno-|-Luglio-|-Agosto-|-Settembre-|-Ottobre-|-Novembre-|-Dicembre-
Replace with: -01-|-02-|-03-|-04-|-05-|-06-|-07-|-08-|-09-|-10-|-11-|-12-

[ ] Regex
Start renaming
damjang
Senior Member
Senior Member
Posts: 215
Joined: 2003-10-09, 15:58 UTC
Contact:

Re: Multi rename for filenames with long dates in italian

Post by *damjang »

Uauuuuu... thank you, work perfectly!
Post Reply