# Replace action with multiple genre entries

**URL:** https://community.mp3tag.de/t/replace-action-with-multiple-genre-entries/11463
**Category:** Support
**Created:** [January 18, 2011, 9:37pm UTC](https://community.mp3tag.de/t/replace-action-with-multiple-genre-entries/11463 "2011-01-18T21:37:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![helpless](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/7ba0ec/32.png) [@helpless](https://community.mp3tag.de/u/helpless)
#### Post date: [January 18, 2011, 9:37pm UTC](https://community.mp3tag.de/t/replace-action-with-multiple-genre-entries/11463/1 "2011-01-18T21:37:51Z")

</div>

Newbie help please, 😃

I have multiple genre entries each separated by \\

I wish to for example change \\rock\\ with \\pop - rock\\

I have tried creating a replace action, replacing 'rock' with 'pop - rock' BUT this also changes other genre tags containing the word 'rock' such as \\hard rock\\

I'm sure I'm missing something obvious, any help appreciated

Regards 'helpless'

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [January 18, 2011, 9:57pm UTC](https://community.mp3tag.de/t/replace-action-with-multiple-genre-entries/11463/2 "2011-01-18T21:57:49Z")

</div>

it's not so obvious.  
\\rock\\ to \\pop - rock\\ does not work because \\ is not interpretated as a character as far as iunderstand this.

It works with **replace with regular expressions** , there you can indicate the start and the end of a field.  
Field: GENRE  
Regular Expression: ^rock$  
Replace Matches With: pop rock

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [January 18, 2011, 10:43pm UTC](https://community.mp3tag.de/t/replace-action-with-multiple-genre-entries/11463/3 "2011-01-18T22:43:07Z")

</div>

> [@helpless](#):
>
> ... I'm sure I'm missing something obvious ...

You want to change the content of a multi-value tag-field, so you have to know how to apply the $meta... functions.

Action: Format value  
Feld: GENRE  
Formatstring:  
`$trim($replace('\\'$meta_sep(GENRE,'\\')'\\','\\Rock\\','\\Pop Rock\\'),'\')`

From:  
`Hard Rock\\Rock\\Soft Rock`

To:  
`Hard Rock\\Pop Rock\\Soft Rock`

DD.20110119.0043.CET

---

<div class="post-metadata">

### Author: ![helpless](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/h/7ba0ec/32.png) [@helpless](https://community.mp3tag.de/u/helpless)
#### Post date: [January 19, 2011, 5:06am UTC](https://community.mp3tag.de/t/replace-action-with-multiple-genre-entries/11463/4 "2011-01-19T05:06:31Z")

</div>

Wonderful, that worked a treat, thanks both for your time. Looks like I have lots to learn

Regards 🙂

---

<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: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/replace-action-with-multiple-genre-entries/11463/5 "2026-02-09T12:22:50Z")

</div>


