# Action for change multiple artist delimiter

**URL:** <https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141>\
**Category:** Support\
**Created:** [August 7, 2022, 8:47pm UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141 "2022-08-07T20:47:12Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Syco2oo5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@Syco2oo5](https://community.mp3tag.de/u/Syco2oo5)\
**Post date:** [August 7, 2022, 8:47pm UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141/1 "2022-08-07T20:47:12Z")

</div>

Is there a way to change the delimiter for multiple artists?  
Currently i have ";" like:  
"Nirvana;Michael Jackson;Guns N Roses"  
I would like to change it to "," for all artists betwen the first and the last, for the last (or if only 2 are available) an "&".  
Like:  
Nirvana & Michael Jackson  
or more then 2:  
Nirvana, Michael Jackson & Guns N Roses.  
I know how to change all ";" to "," but i cant find a way to get the "&" if i need/want them.  
And doint it manualy would be a pain...  
Is there a way to make an action for what i need? Thanks, and sorry for my bad english

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [August 7, 2022, 8:50pm UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141/2 "2022-08-07T20:50:18Z")

</div>

see here:

> [@How to batch replace the last comma with ampersand (&) character.](https://community.mp3tag.de/t/how-to-batch-replace-the-last-comma-with-ampersand-character/17728):
>
> In artist tag, I want to batch replace the last comma with ampersand (&) character. e.g. if artist tag is "Artist A, Artist B, Artist C" result should be "Artist A, Artist B & Artist C". and if "Artist A, Artist B" result should be "Artist A & Artist B". How to do it by action? May I get the regular expression replace syntax for the same. Thanks...

and once you have replaced the last semicolon with an ampersand, replace all other semicoli with a comma.

---

<div class="post-metadata">

**Author:** ![Syco2oo5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@Syco2oo5](https://community.mp3tag.de/u/Syco2oo5)\
**Post date:** [August 7, 2022, 10:30pm UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141/3 "2022-08-07T22:30:10Z")

</div>

thank you, dont know why i didnt found it. but i tried it now, and i dont get it to work.  
it just replaces all.so at the end i have everthing with "&" and a replace all with comma results in everything comma. That problem i had before also, i dont get it to work to only replace the last (or if only 2 artist, the first and only) comma with an &. Maybe there were some changes in mp3tag since 2016, and thats why it dosnt work?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [August 8, 2022, 5:30am UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141/4 "2022-08-08T05:30:33Z")

</div>

> [@Syco2oo5](#):
>
> Maybe there were some changes in mp3tag since 2016, and thats why it dosnt work?

No.  
So, what did you try?

---

<div class="post-metadata">

**Author:** ![Syco2oo5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@Syco2oo5](https://community.mp3tag.de/u/Syco2oo5)\
**Post date:** [August 8, 2022, 8:56am UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141/5 "2022-08-08T08:56:39Z")

</div>

> [@How to batch replace the last comma with ampersand (&) character.](https://community.mp3tag.de/t/how-to-batch-replace-the-last-comma-with-ampersand-character/17728/2):
>
> Use an action of the type "Replace with regular expression" for ARTIST Search string: (.\*), (.\*) Replace string: $1 & $2 Due to the greediness of the expression, only the last comma is replaced. Should work with any Artist that has comma in the name. Will produce problems for artists that already have an ampersand in the name like "Emerson, Lake & Palmer", "Earth, Wind & Fire", "Bell, Book & Candle".

i used this. changed the search string from comma to semicolon and it replaced all not only the last one.  
also when i changed all to comma, like the first poster had, it and i used the same string, it changed all to ampersand.

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [August 8, 2022, 9:36am UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141/6 "2022-08-08T09:36:01Z")

</div>

> [@Syco2oo5](#):
>
> Nirvana;Michael Jackson;Guns N Roses"  
> I would like to change it to "," for all artists betwen the first and the last, for the last (or if only 2 are available) an "&".

Try Converter\>Tag-Tag for ARTIST  
Format string: `$regexp($replace(%artist%,;,', '),'(.*), (.*)',$1 & $2)`

---

<div class="post-metadata">

**Author:** ![Syco2oo5](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/5daacb/32.png) [@Syco2oo5](https://community.mp3tag.de/u/Syco2oo5)\
**Post date:** [August 8, 2022, 10:12am UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141/7 "2022-08-08T10:12:00Z")

</div>

thanks, that did the trick 🙂

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [September 7, 2022, 10:12am UTC](https://community.mp3tag.de/t/action-for-change-multiple-artist-delimiter/58141/8 "2022-09-07T10:12:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
