Hello. I'm relatively new to regular expressions and have taken a few shots at this, but can't seem to get it right. I have also reviewed the posts on this forum but did not find any examples that really applied.
I have several dozen files (mp3's) that have the format "song title - the artist name.mp3" and I want to rename them "artist name - song title.mp3". The primary problem I have with capturing the individual expressions is that the song title and the artist names vary with the number of words before and after the hyphen. Here are a few examples. Thanks in advance for your help.
From:
Tenessee Christmas - Alabama.mp3
25 Or 6 To 4-Chicago.mp3
To:
Alabama-Tenessee Christmas.mp3
Chicago-25 Or 6 To 4.mp3