# How to remove duplicated names within a tag

**URL:** https://community.mp3tag.de/t/how-to-remove-duplicated-names-within-a-tag/44450
**Category:** Support
**Created:** [February 7, 2019, 1:43am UTC](https://community.mp3tag.de/t/how-to-remove-duplicated-names-within-a-tag/44450 "2019-02-07T01:43:53Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [February 7, 2019, 6:07am UTC](https://community.mp3tag.de/t/how-to-remove-duplicated-names-within-a-tag/44450/2 "2019-02-07T06:07:19Z")

</div>

See this thread:

> [@Merging several Tag Fields into CONTENTGROUP](https://community.mp3tag.de/t/merging-several-tag-fields-into-contentgroup/10616/4):
>
> ... and here it goes ... Note: If we could sort a delimited itemlist within a tag-field, Mp3tag life would be much easier! If we could repeat one action in a loop, Mp3tag life would be much easier! Example itemlist: ITEMLIST="aaa,aaa,aaa,bbb,ccc,bbb,ddd,ddd,ddd,ccc,eee,fff,GGG,ggg,iii" The itemlist contains 15 items: "aaa" x 3, "bbb" x 2, "ccc" x 2, "ddd" x 3, "eee" x 1, "fff" x 1, "GGG" x 1, "ggg" x 1, "iii" x 1. This regular expression: $regexp(%ITEMLIST%,'(?:^|,)([^,]\*)(,\1)+(?=,|$)…

---

_[View the full topic](https://community.mp3tag.de/t/how-to-remove-duplicated-names-within-a-tag/44450)._
