FROM:
SF263-01 - Kate Nash - Pumpkin Soup
TO:
SF263-01 - Nash, Kate - Pumpkin Soup
Shoot in the dark, just try it, hope it works....
We use an RegEx:
Match anything till space/hyphen/space but non-greedy ==> "(.+ - ?)" ==> "(SF263-01 - )" ==> Group 1
Match anything till an space ==> "(.+?) " ==> "(Kate) " ==> Group 2
Match anything till an space ==> "(.+?) " ==> "(Nash) " ==> Group 3
Match the rest ==> (- .+) ==> "(- Pumpkin Soup)" ==> Group 4
What is matched by the expression inside an (..)-group can be reused in the output by using "\1", "\2", "\3"... meta chars.
So just reorder the output as needed (by adding some blanks or comas as needed) ==> \1\3, \2 \4
I would try:
RegEx(1)
Search: "(.+ - ?)(.+?) (.+?) (- .+)"
Replace: "\1\3, \2 \4"Note:
* test this first with copies of your real files!
* this solution will only work for names, build like the examples you have provided. Maybe you have to adjust the expression, add or remove an blank or like that.
* select a few or all files in "Name"-column to see the preview in "NewName"-column.
* if all went fine, press at [Rename]
HTH?
