Switching multiple first and last names


#1

I can succesfully switch First and Last Artist names using the following function:

$regexp(%artist%,(.?) (.),$2',' $1)

How can I modify this script to perform the same action to multiple artists separated by \\ ?

Merci


#2

The easiest way is to use a Replace with regular expression action.
It will work with the same parameters.


#3

Thank you
I need some more guidance.
What would the text be in the 'Regular expression' and 'Replace the correspondances by' fields?
Merci


#4

RE: (.?) (.)
Replace with: $2, $1


#5

Perfect
Merci