Skip to main content

Notice

Please be aware that much of the software linked to or mentioned on this forum is niche and therefore infrequently downloaded. Lots of anti-virus scanners and so-called malware detectors like to flag infrequently downloaded software as bad until it is either downloaded enough times, or its developer actually bothers with getting each individual release allow listed by every single AV vendor. You can do many people a great favor when encountering such a "problem" example by submitting them to your AV vendor for examination. For almost everything on this forum, it is a false positive.
Topic: Masstagger Help - Replace only some characters (Read 195 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-2021