Page 1 of 1

Rename MP3 filenames with Lastname, Firstname

PostPosted: Tue Aug 08, 2017 3:41 pm
by TheMusicMan
Hi,

I am very new to this program and I'm already finding it fantastic.

I would like to find out how I could load a selection of files and only change those that are seperated with a comma. All files are sepperated with a "space - space" As in Artist - Title.mp3, obviously the amount of words vary also.

So, if there is a comma in the "Artist" part of the file name, I want to move the word after it, to the start of the name and remove the comma, however many names are in the "Artist"

The examples below should give you an idea of my situation. I hope that someone here can give me some idea of how to do this.

42nd St. - Lullabye Of Broadway.mp3 *__Should be__* 42nd St. - Lullabye Of Broadway.mp3
Mann, Manfred - Do Wah Diddy.mp3 *__Should be__* Manfred Mann - Do Wah Diddy.mp3
Bryan Adams - Everything I Do.mp3 *__Should be__* Bryan Adams - Everything I Do.mp3
KITTEN, ATOMIC - ETERNAL FLAME.mp3 *__Should be__* ATOMIC KITTEN - ETERNAL FLAME.mp3
BILLIE PIPER - SHE WANTS YOU.mp3 *__Should be__* BILLIE PIPER - SHE WANTS YOU.mp3
ANDREWS SISTERS, THE - BOOGIE WOOGIE BUGLE BOY.mp3 *__Should be__* THE ANDREWS SISTERS - BOOGIE WOOGIE BUGLE BOY.mp3

Re: Rename MP3 filenames with Lastname, Firstname

PostPosted: Wed Aug 09, 2017 7:52 am
by Emerkamp
Hi,

Try This:
RegEx: (1)
Code: Select all
Match:
(.*), (.*) - (.*)
Replace:
\2 \1 - \3


This should only affect filenames with a comma in the name.