Skip to main content

Notice

If you are using a Hotmail or Outlook email address, please change it now, as Microsoft is rejecting all email from our service outright.
Topic: Masstagger Help - Replace only some characters (Read 121 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Masstagger Help - Replace only some characters

Hi guys, I have a problem here, I have various artists field tagged this way: "Artist1 & Artist2 & Artist3" and I would like to replace all the "&" by "," except the last one, it would be this way: "Artist1, Artist2 & Artist3"

Does anyone know a way with masstager or another tool to replace this character except the last one?

Thanks

Re: Masstagger Help - Replace only some characters

Reply #1
Split the field into multi values using " & " as a separator, then use format field action to write a single string using $meta_sep(). Keeping multiple values would provide more flexibility for display of metadata or searching.

$meta_sep(artist,', ',' & ')

Re: Masstagger Help - Replace only some characters

Reply #2
Split the field into multi values using " & " as a separator, then use format field action to write a single string using $meta_sep(). Keeping multiple values would provide more flexibility for display of metadata or searching.

$meta_sep(artist,', ',' & ')

Excellent, worked very well! And I could create one script splitting the field and replacing.

Thank you!

 
SimplePortal 1.0.0 RC1 © 2008-2020