Swapping multiple words in TITLE


#1

I've got song titles that are like this:

Main Titles [From "Delores Claiborne"]

and

Main Titles [From Delores Claiborne]

What I would like to do is make the title be

Delores Claiborne: Main Titles

Thanks,
Chris


#2

From:
Main Titles [From "Delores Claiborne"]
Main Titles [From Delores Claiborne]
To:
Delores Claiborne: Main Titles

Action "Format value":

$regexp($regexp($replace('Main Titles [From "Delores Claiborne"]','"',),'^(.+?)\s\[(.+?)\]$','$2: $1'),'^From\s',)

Alternative:
Action "Format value":

$regexp($regexp($regexp('Main Titles [From "Delores Claiborne"]','\[From ','['),'"',),'^(.+?)\[(.+?)\]$','$2: $1')

Alternative:
Action "Format value":

$regexp('Main Titles [From "Delores Claiborne"]','^(.+?)\s\[From\s\"?(.+?)\"?\]$','$2: $1')

In the above expression change the string part 'Main Titles [From "Delores Claiborne"]' to the tag-field content you want to use, e. g. %TITLE%.
Use the expression with an action "Format value".
You cannot use this expression to change a filename, because the colon is a forbidden character for a filename.

And see there about Dolores:
http://en.wikipedia.org/wiki/Dolores_Claiborne

DD.20100825.0642.CEST