# Delete repeated genre's in the same exact field

**URL:** https://community.mp3tag.de/t/delete-repeated-genres-in-the-same-exact-field/58954
**Category:** Support
**Created:** [November 3, 2022, 12:06am UTC](https://community.mp3tag.de/t/delete-repeated-genres-in-the-same-exact-field/58954 "2022-11-03T00:06:10Z")
**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: [November 3, 2022, 6:13am UTC](https://community.mp3tag.de/t/delete-repeated-genres-in-the-same-exact-field/58954/2 "2022-11-03T06:13:48Z")

</div>

> [@Rycia](#):
>
> I have ONE genre field (not multiple,)

The dump that you kindly supplied shows data with a double backslash `\\` which is in MP3tag usually the indicator that there are actually multiple fields of the same type.  
Could you check the extended tags dialogue Alt-T whether how many fields of the type genre there are?  
If you find several, then merge this field into one with an action of the type

> **[Merge Duplicate Fields – Mp3tag Documentation](https://docs.mp3tag.de/actions/merge-duplicate-fields/)**
>
> Documentation on the Merge Duplicate Fields action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

and use something unlike the double backslash as separator. A (comma or) semicolon would be nice.  
And then have a look at this thread:

> [@Merge duplicate words](https://community.mp3tag.de/t/merge-duplicate-words/16289/3):
>
> You want to keep the first value. That's more complicated. [Edit:] Action: Format value Field: Genre Format string: $regexp($reverse($regexp($regexp($reverse($regexp($regexp(%Genre%,'^(\s+;\*|\s\*;+)+|(\s+;\*|\s\*;+)+$|((?\<=;)\s+)|(\s+(?=;))',),'^|$',';')),'(;[^;]+)(?=(\1|;.\*?\1))',),'^;+|;+$',)),'(?\<=;)',' ') Replace Genre with any other tag and it will remove duplicates too. This action "fixes" first the multiple value string (remove multiple spaces after ; separator). It will add exac…

---

_[View the full topic](https://community.mp3tag.de/t/delete-repeated-genres-in-the-same-exact-field/58954)._
