#1 2019-01-27 09:36

melsofft
Member
Registered: 2019-01-27
Posts: 2

Swap names problem

Hello there

I have files like this:

Caragiale, Ion Luca - Opere alese vol.1.docx

to rename in

Ion Luca Caragiale - Opere alese vol.1.docx

I try with delimiters "," and $2 $1 and the result is:

Ion Luca - Opere alese vol.1 Caragiale.docx

Where is the mistake??? What to do?

Offline

#2 2019-01-27 09:56

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Swap names problem

The Rearrange rule works as expected in your case, but perhaps not as intended by you.

If you use "," as the delimiter, your filename will get split into 2 parts, highlighted as RED and BLUE:

Caragiale, Ion Luca - Opere alese vol.1.docx

So then if you swap them around using "$2 $1" pattern, you will get:

Ion Luca - Opere alese vol.1 Caragiale.docx

Instead, I think you what to split it into 3 parts, so you would use an exact pattern of delimiters ", | - " to get parts:

Caragiale, Ion Luca - Opere alese vol.1.docx

And then rearrange using "$2 $1 - $3" pattern to get:

Ion Luca Caragiale - Opere alese vol.1.docx

Offline

#3 2019-01-27 13:28

melsofft
Member
Registered: 2019-01-27
Posts: 2

Re: Swap names problem

Thank you very much for your help, is oh so simple this program...

smile

Offline

Board footer

Powered by FluxBB