# 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:** 3

<div class="post-metadata">

### Author: ![Rycia](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/c67d28/32.png) [@Rycia](https://community.mp3tag.de/u/Rycia)
#### Post date: [November 3, 2022, 10:35pm UTC](https://community.mp3tag.de/t/delete-repeated-genres-in-the-same-exact-field/58954/3 "2022-11-03T22:35:07Z")

</div>

> [@Merge duplicate words](https://community.mp3tag.de/t/merge-duplicate-words/16289/3):
>
> $regexp($reverse($regexp($regexp($reverse($regexp($regexp(%Genre%,'^(\s+;|\s;+)+|(\s+;|\s;+)+$|((?\<=;)\s+)|(\s+(?=;))',),'^|$',';')),'(;[^;]+)(?=(\1|;.\*?\1))',),'^;+|;+$',)),'(?\<=;)',' ')

I've messed with it for about 6 hours last night.

Yeah, everything is separated by \, and it seems like each \ creates a new field as opposed to any other separator which would otherwise define it as one single field.

I already saw that post and tried to use it with the "; " separator and it doesn't do anything at all.  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/b/b27f6ee1162ebdf2ea63d08d9aeb9c605415317e.png)

Here's the Alt-T

 ![image](https://community.mp3tag.de/uploads/default/original/2X/7/72107de8796bc0e184726eefffc9e6f947e44b95.png)  
Shows it all under one tag.

---

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