# Replace the same character for more than a character

**URL:** https://community.mp3tag.de/t/replace-the-same-character-for-more-than-a-character/18241
**Category:** Support
**Created:** [September 14, 2016, 10:22pm UTC](https://community.mp3tag.de/t/replace-the-same-character-for-more-than-a-character/18241 "2016-09-14T22:22:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![macgldesign](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@macgldesign](https://community.mp3tag.de/u/macgldesign)
#### Post date: [September 14, 2016, 10:22pm UTC](https://community.mp3tag.de/t/replace-the-same-character-for-more-than-a-character/18241/1 "2016-09-14T22:22:31Z")

</div>

Hello friends!

I have this data:

**Artist  
Dido; Eminem  
Eminem; RBX; Sticky Fingaz  
Dr. Dre; Eminem; Nate Dogg; Snoop Dogg; Xzibit**

what I need is to transform the character " **;**" in " **feat.**" another in " **comma**" and another in " **&**" getting the following result:

**Artist  
Dido feat. Eminem  
Eminem feat. RBX & Sticky Fingaz  
Dr. Dre feat. Eminem, Nate Dogg, Snoop Dogg & Xzibit**

The first character " **;**" always be " **feat.**"  
The last character " **;**" will always be " **&**"  
And the other characters " **;**" which will be the middle will be " **comma**"

It is to do this without getting so...  
Dr. Dre **feat.** Eminem **feat.** Nate Dogg **feat.** Snoop Dogg **feat.** Xzibit

I do not know where to start...  
I await your help.  
thank you in advance, embrace!

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [September 15, 2016, 12:52pm UTC](https://community.mp3tag.de/t/replace-the-same-character-for-more-than-a-character/18241/2 "2016-09-15T12:52:41Z")

</div>

Regular expressions are always your friend.. If you get a chance learn them 🙂

Use the following:  
_Action type:_ **Format value**  
_Field:_ **ARTIST**  
_Formatstring:_ **$regexp($regexp($regexp(%artist%,';(\s\*[^;]+);\s\*([^;]+)$',;$1 & $2),'^([^;]+);\s\*',$1 feat. $2),';',',')**

Results:

```
  "Dido; Eminem" ->
  "Dido feat. Eminem"

  "Eminem; RBX; Sticky Fingaz" ->
  "Eminem feat. RBX & Sticky Fingaz"

  "Dr. Dre; Eminem; Nate Dogg; Snoop Dogg; Xzibit" ->
  "Dr. Dre feat. Eminem, Nate Dogg, Snoop Dogg & Xzibit"

  "Dr. Dre; Eminem; Nate Dogg; Snoop Dogg; Xzibit; deadmau5" ->
  "Dr. Dre feat. Eminem, Nate Dogg, Snoop Dogg, Xzibit & deadmau5"

  "Dr. Dre; Eminem; Nate Dogg; Snoop Dogg; Xzibit; deadmau5; me" ->
  "Dr. Dre feat. Eminem, Nate Dogg, Snoop Dogg, Xzibit, deadmau5 & me"
```

---

<div class="post-metadata">

### Author: ![macgldesign](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/a88e57/32.png) [@macgldesign](https://community.mp3tag.de/u/macgldesign)
#### Post date: [September 16, 2016, 11:06pm UTC](https://community.mp3tag.de/t/replace-the-same-character-for-more-than-a-character/18241/3 "2016-09-16T23:06:11Z")

</div>

QUOTE (stevehero @ Sep 15 2016, 12:52) \<{POST\_SNAPBACK}\>

Regular expressions are always your friend.. If you get a chance learn them :slight\_smile:

Use the following:  
_Action type:_ **Format value**  
_Field:_ **ARTIST**  
_Formatstring:_ **$regexp($regexp($regexp(%artist%,';(\s\*[^;]+);\s\*([^;]+)$',;$1 & $2),'^([^;]+);\s\*',$1 feat. $2),';',',')**

Results:

```
  "Dido; Eminem" ->
  "Dido feat. Eminem"

  "Eminem; RBX; Sticky Fingaz" ->
  "Eminem feat. RBX & Sticky Fingaz"

  "Dr. Dre; Eminem; Nate Dogg; Snoop Dogg; Xzibit" ->
  "Dr. Dre feat. Eminem, Nate Dogg, Snoop Dogg & Xzibit"

  "Dr. Dre; Eminem; Nate Dogg; Snoop Dogg; Xzibit; deadmau5" ->
  "Dr. Dre feat. Eminem, Nate Dogg, Snoop Dogg, Xzibit & deadmau5"

  "Dr. Dre; Eminem; Nate Dogg; Snoop Dogg; Xzibit; deadmau5; me" ->
  "Dr. Dre feat. Eminem, Nate Dogg, Snoop Dogg, Xzibit, deadmau5 & me"<!--QuoteEnd--></div><!--QuoteEEnd-->

```

Muito obrigado!  
o fato de todo suporte ser em inglês dificulta um pouco o entendimento de algumas funções,  
mas irei me esforçar e estudar mais sobre isso!  
abraço.

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [September 17, 2016, 7:07pm UTC](https://community.mp3tag.de/t/replace-the-same-character-for-more-than-a-character/18241/4 "2016-09-17T19:07:17Z")

</div>

> [@Mac](#):
>
> Muito obrigado!  
> o fato de todo suporte ser em inglês dificulta um pouco o entendimento de algumas funções,  
> mas irei me esforçar e estudar mais sobre isso!  
> abraço.

De nada hombre.. Yo hablo un poquito espanól asi que yo entiendo tu problema jaja 😉

---

<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:26pm UTC](https://community.mp3tag.de/t/replace-the-same-character-for-more-than-a-character/18241/5 "2026-02-09T12:26:25Z")

</div>


