$replace when there is a comma in the search string

Get answers about using MediaMonkey 4 for Windows.

Moderator: Gurus

TreeFrogBandit

$replace when there is a comma in the search string

Post by TreeFrogBandit »

Hi Guys,

very quick question (I hope). I've got a bunch of metadata titles with the album name tacked on the front. I'm trying to use the $replace function to remove the initial elements, so I just have the track name in the title field e.g.

<album name, volume 1: track name> becomes <track name>

but I have a problem, because of the comma in the search string I want to remove Mediamonkey interprets it as the end of the search string (so instead of

replace( "album name, volume 1:" with "") I get replace("album name" with "volume 1: ")

I've tried enclosing the string in quotes, but it doesn't seem to help. Does anyone have a solution for me?

Thanks

Will
Lowlander
Posts: 56491
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Re: $replace when there is a comma in the search string

Post by Lowlander »

treeFrogBandit

Re: $replace when there is a comma in the search string

Post by treeFrogBandit »

Nice one, thabnks
Post Reply