Multi Rename: add a " - " to separate Artist from

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
MaPo
Junior Member
Junior Member
Posts: 2
Joined: 2013-05-30, 11:03 UTC

Multi Rename: add a " - " to separate Artist from

Post by *MaPo »

Hi there,

I've got a tough one to crack.

I want to add a " - " after each artist name but before the Title to seperate artist from Title.
As you can see the name of the artists are all uppercase and the title is usually first character uppercase and second lowercase.

SF175-03 - JENNIFER LOPEZ My Love Don't Cost A Thing.cdg
SF175-03 - JENNIFER LOPEZ My Love Don't Cost A Thing.mp3
SF175-01 - ANASTACIA Not That Kind .cdg
SF175-01 - ANASTACIA Not That Kind .mp3

Can somebody help me with this?

Thank You

Maurice

-Proud owner of license since 1997 -
regex
Junior Member
Junior Member
Posts: 38
Joined: 2007-07-19, 07:30 UTC

Post by *regex »

Search for: ([^ ]* - )(.*?)( [A-Z][a-z].*)
Replace with: $1$2 -$3
Check on for: ^ (Respect Case) and RegEx

Regards
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Post by *ts4242 »

There are some MP3 content plugins that you can use in multi rename tool, e.g. http://www.totalcmd.net/plugring/wdx_anytag.html after installing it, select the files you want to rename and type the following in the mask field

Code: Select all

[=anytag.Artist] - [=anytag.Title]
Play with other options until you got the desired names.
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

regex wrote:Search for: ([^ ]* - )(.*?)( [A-Z][a-z].*)
Replace with: $1$2 -$3
Check on for: ^ (Respect Case) and RegEx
That would fail if the title starts with a one letter word. For example:
SF999-98 - BOB DYLAN I Can't Get You Off Of My Mind.mp3
SF999-99 - BOB DYLAN A Fool Such As I.mp3

So suggest to search for artist names ending with at least two characters. For example:

Code: Select all

Search for:   ( - [A-Z' ]*[A-Z']{2} )(.*)
Replace with: $1- $2

Checkbox "^" enabled
Checkbox RegEx enabled
MaPo
Junior Member
Junior Member
Posts: 2
Joined: 2013-05-30, 11:03 UTC

Post by *MaPo »

True MAgic!

Thx White!!

Small flaw

SF175-11 - MARTINE McCUTCHEN On The Radio.mp3
SF175-09 - U2 Stuck In a Moment With You.cdg
SF175-10 - A1 No More.cdg

But better theze few than to do them all manually

Thank you again!
#159969 Single User License
User avatar
white
Power Member
Power Member
Posts: 4593
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MaPo wrote:SF175-11 - MARTINE McCUTCHEN On The Radio.mp3
I would do this one manually.
MaPo wrote:SF175-09 - U2 Stuck In a Moment With You.cdg
SF175-10 - A1 No More.cdg
Add 0-9 to the regular expression:
( - [A-Z0-9' ]*[A-Z0-9']{2} )(.*)
Post Reply