Page 1 of 1

Artist Name Swap

PostPosted: Thu Apr 28, 2016 6:01 pm
by jaym8377
Hello, I'm sure this has been asked before, but I'm having trouble finding a solution to my exact situation. I don't understand the 'Match' and what all the symbols mean in the other threads, so I'm having trouble taking solutions to other problems and applying them to mine.

I have file names in which I would like to take the artist name (FIRST LAST) and swap it to (LAST, FIRST):

"FIRST LAST - TITLE.zip" changed to "LAST, FIRST - TITLE.zip"

Others have a Disc ID in front, so I'll need to work around these as well so that everything before the first (space)-(space) is unchanged as well as everything after.

"DISCID000-99 - FIRST LAST - TITLE.zip" changed to "DISCID000-99 - LAST, FIRST - TITLE.zip"

Can someone please help?? Many thanks!

Re: Artist Name Swap

PostPosted: Fri Apr 29, 2016 2:09 am
by therube
Not sure if you can do both at once, but ...

1:RegEx
Match: (\S*) (\S*) (.*)
Replace: \2, \1 \3

1:RegEx
Match: (DISC.*)-(.*) (.*) - (.*)
Replace: \1- \3,\2 - \4

Re: Artist Name Swap

PostPosted: Sat Apr 30, 2016 3:34 pm
by jaym8377
therube wrote:Not sure if you can do both at once, but ...

1:RegEx
Match: (\S*) (\S*) (.*)
Replace: \2, \1 \3

1:RegEx
Match: (DISC.*)-(.*) (.*) - (.*)
Replace: \1- \3,\2 - \4



THANK YOU THANK YOU THANK YOU!