#1 2016-10-12 20:13

Lauraq
Member
Registered: 2016-10-02
Posts: 77

reverse name and surname

Sorry, another question smile

is possible inverse name and surname, for example, I have my file named like it:

Lorenzo Jovanotti - La gente della notte.mp3

I want

Jovanotti Lorenzo - La gente della notte.mp3

Thanks smile

Offline

#2 2016-10-13 09:55

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

Offline

#3 2016-10-13 10:49

Lauraq
Member
Registered: 2016-10-02
Posts: 77

Re: reverse name and surname

I have read your link but I havent' find a solution. The best that I have find is:

split using: Exact pattern
in the first space to write I have put only a space
in the second I have write $2
but, if my mp3 is named

Lorenzo Jovanotti - La gente della notte.mp3

the result is

Jovanotti - La gente della notte

the name is deleted sad

Last edited by Lauraq (2016-10-13 10:50)

Offline

#4 2016-10-13 13:05

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

Re: reverse name and surname

Have you looked at Example 1?

In your case it is best to use:

Split using: Exact pattern of delimiters
Delimiter: " - "  (without the quotes)
New pattern: $2 - $1

Offline

#5 2016-10-13 20:47

Lauraq
Member
Registered: 2016-10-02
Posts: 77

Re: reverse name and surname

don't work sad  it rename in:

La gente della notte - Lorenzo Jovanotti.mp3

Offline

#6 2016-10-13 22:38

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

Re: reverse name and surname

I have misread your question.

If you want to swap only the first two words, then use:

Split using: Exact pattern of delimiters
Delimiter: " | "  (without the quotes)
New pattern: $2 $1 $3

renamer-swap-first-two-words.png

Offline

#7 2016-10-14 12:49

Lauraq
Member
Registered: 2016-10-02
Posts: 77

Re: reverse name and surname

perfect! Thanks smile smile smile

Offline

Board footer

Powered by FluxBB