# Export configuration for multiple artists

**URL:** https://community.mp3tag.de/t/export-configuration-for-multiple-artists/40992
**Category:** Export
**Created:** [March 8, 2018, 11:23am UTC](https://community.mp3tag.de/t/export-configuration-for-multiple-artists/40992 "2018-03-08T11:23:03Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [March 8, 2018, 4:37pm UTC](https://community.mp3tag.de/t/export-configuration-for-multiple-artists/40992/8 "2018-03-08T16:37:42Z")

</div>

> [@veggera](#):
>
> On the last artist "Nick Devon" as it's last there not the comma should appear.

Inspired by [Detlev's work](https://community.mp3tag.de/t/listing-all-artists-from-album-into-one-tag-field/14438/10), it's possible to collect all artists in a variable:

```auto
$filename(txt,UTF-8)
$loop(%ALBUM%)$puts(ListOfArtists,)$loop(%ARTIST%)$loop(%ALBUM%)$puts(ListOfArtists,$get(ListOfArtists)%ARTIST%', ')$loopend()$loopend()
$loop(%ALBUM%)$puts(ListOfArtists,$trim($regexp($get(ListOfArtists),'(?:(?<=,)|(?<=\A)|(?<=^))\s?([^,]*),(?=.*?(?<=,)\s?\1(?=,|\Z|$))(?#remove dups from comma- or comma+space- delimited list)',),', '))$loopend()
$loop(%ALBUM%,1)%ALBUM%
  $get(ListOfArtists)
$loopend()$loopend()

```

The same needs to be done for the `%MIXARTIST%` then. It's kinda magic — but fun 🤓

---

_[View the full topic](https://community.mp3tag.de/t/export-configuration-for-multiple-artists/40992)._
