# Replace multiple genres with one

**URL:** https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287
**Category:** Support
**Created:** [December 5, 2025, 10:53am UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287 "2025-12-05T10:53:28Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![mikolajek](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mikolajek/32/19470_2.png) [@mikolajek](https://community.mp3tag.de/u/mikolajek)
#### Post date: [December 5, 2025, 10:53am UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/1 "2025-12-05T10:53:28Z")

</div>

I’m trying to create an action to replace several meesed genres into one. Can you please suggest what regex I should use for %genre% to capture anything there?

So far my attempts resulted in replacing every single char with the new genre name (GENREGENREGENRE…)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [December 5, 2025, 11:47am UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/2 "2025-12-05T11:47:13Z")

</div>

Please show us some real current content from your GENRE and the expected result.

You can create [screenshots](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190#p-168842-use-screenshots-to-exemplify-the-issue-2) or copy & paste the current content from your GENRE in your next answer.

---

<div class="post-metadata">

### Author: ![mikolajek](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mikolajek/32/19470_2.png) [@mikolajek](https://community.mp3tag.de/u/mikolajek)
#### Post date: [December 5, 2025, 11:59am UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/3 "2025-12-05T11:59:51Z")

</div>

There are multiple hip-hop related genders which I want to unify under “Hip-Hop”. Currently I havee Hiphop, Rap, Rap/Hip-Hop, HH etc.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [December 5, 2025, 12:34pm UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/4 "2025-12-05T12:34:51Z")

</div>

You want to replace all the existing GENRE in every song that includes one or more of these genres

```auto
Hiphop
Rap
Rap/Hip-Hop
HH

```

with only one GENRE  
`Hip-Hop`  
?

---

<div class="post-metadata">

### Author: ![mikolajek](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mikolajek/32/19470_2.png) [@mikolajek](https://community.mp3tag.de/u/mikolajek)
#### Post date: [December 5, 2025, 12:36pm UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/5 "2025-12-05T12:36:14Z")

</div>

Precisely, that’s my desire!

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [December 5, 2025, 12:57pm UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/6 "2025-12-05T12:57:09Z")

</div>

I don't see yet how to solve it with an Action.

But with Convert Tag -\> Tag you could solve it with this Formatstring:  
`$dedup($regexp(%GENRE%,\b(?:Hiphop|Rap|Rap/Hip-Hop|HH)\b,Hip-Hop),/,1)`  
you can adjust the list of GENRE divided by a Pipe `|` as you need.

 ![image](https://community.mp3tag.de/uploads/default/original/3X/0/e/0eaee217790536a8dbf3800f1e05ca3f7c233c83.png)  
would result in 5 x Hip-Hop and 1 x unchanged Pop GENRE content.  
 ![image](https://community.mp3tag.de/uploads/default/original/3X/b/6/b66e5c9b3d29dfeb8cf73b07ceab97eff633a688.png)

The deduplication only works, if multiple GENREs are divided with a Slash `/` (without Spaces) like in `Rap/Hip-Hop`

---

<div class="post-metadata">

### Author: ![mikolajek](https://community.mp3tag.de/user_avatar/community.mp3tag.de/mikolajek/32/19470_2.png) [@mikolajek](https://community.mp3tag.de/u/mikolajek)
#### Post date: [December 5, 2025, 1:01pm UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/7 "2025-12-05T13:01:25Z")

</div>

Sounds wonderful, thank you a million!

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [December 5, 2025, 1:13pm UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/8 "2025-12-05T13:13:19Z")

</div>

For future readers:

Just to be clear, in the unlikely case that your GENRE content were to be something like  
`Metal/Rap/Salsa/Soul/HH`  
your GENRE would be replaced with the above Formatstring to  
`Metal/Hip-Hop/Salsa/Soul`  
because `Rap` and `HH` would be found, replaced and deduplicated.

---

<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: [January 4, 2026, 1:13pm UTC](https://community.mp3tag.de/t/replace-multiple-genres-with-one/70287/9 "2026-01-04T13:13:40Z")

</div>

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