# using - replace with reg. exp. and merge parts of different tagfields

**URL:** <https://community.mp3tag.de/t/using-replace-with-reg-exp-and-merge-parts-of-different-tagfields/16899>\
**Category:** Support\
**Created:** [May 13, 2015, 11:28am UTC](https://community.mp3tag.de/t/using-replace-with-reg-exp-and-merge-parts-of-different-tagfields/16899 "2015-05-13T11:28:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mp3tag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5f8ce5/32.png) [@mp3tag](https://community.mp3tag.de/u/mp3tag)\
**Post date:** [May 13, 2015, 11:28am UTC](https://community.mp3tag.de/t/using-replace-with-reg-exp-and-merge-parts-of-different-tagfields/16899/1 "2015-05-13T11:28:55Z")

</div>

maybe my idea is a bit overloaded?!

but is there a chances to include parts of different tagfields while using "replace with reg. expressions"?

for example i want to change the title-field "3rd Eye (Atomic Pulse Remix)"

to "3rd Eye feat. ORIGARTIST (Atomic Pulse Remix)"

my expression looks like ^(._)\s((._))$ so i get 2 parts

$1 = "3rd eye" and 2$ = "(Atomic Pulse Remix)"

the with-string should have the information from %ORIGARTIST%

is it possible in any way?

regards mp3tag

---

<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:** [May 13, 2015, 2:08pm UTC](https://community.mp3tag.de/t/using-replace-with-reg-exp-and-merge-parts-of-different-tagfields/16899/2 "2015-05-13T14:08:59Z")

</div>

> [@mp3tag](#):
>
> ... i want to change the title-field "3rd Eye (Atomic Pulse Remix)" to "3rd Eye feat. ORIGARTIST (Atomic Pulse Remix)" ... is it possible in any way? ...

**Action: Format value Field: TITLE Formatstring: $if(%ORIGARTIST%,$replace(%TITLE%,' (',' feat. '%ORIGARTIST%' ('),%TITLE%) ... or ... Action: Format value Field: TITLE Formatstring: $regexp(%TITLE%,'^(.+?)\s\(.+?\)$','$1')' feat. '%ORIGARTIST%$regexp(%TITLE%,'^.+?(\s\(.+?\))$','$1') ... or ... Action: Format value Field: TITLE Formatstring: $replace(%TITLE%,' (','\\\\(') Action: Format value Field: TITLE Formatstring: $meta(TITLE,0)' feat. '%ORIGARTIST%' '$meta(TITLE,1) ... or ... Action: Format value Field: TITLE Formatstring: $left(%TITLE%,$strstr(%TITLE%,' ('))'feat. '%ORIGARTIST%' '$cutLeft(%TITLE%,$strstr(%TITLE%,' (')) ... or ... Action: Format value Field: TITLE Formatstring: $regexp(%TITLE%,'^(.+?)\s(\(.+?\))$','$1 feat. '%ORIGARTIST%' $2') ... or ... Action: Format value Field: TITLE Formatstring: $regexp(%TITLE%'==='%ORIGARTIST%,'^(.+?)\s(\(.+?\))===(.+?)$','$1 feat. $3 $2')**

DD.20150513.1930.CEST, DD.20150514.1025.CEST

---

<div class="post-metadata">

**Author:** ![mp3tag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5f8ce5/32.png) [@mp3tag](https://community.mp3tag.de/u/mp3tag)\
**Post date:** [May 13, 2015, 9:02pm UTC](https://community.mp3tag.de/t/using-replace-with-reg-exp-and-merge-parts-of-different-tagfields/16899/3 "2015-05-13T21:02:45Z")

</div>

PUHH! it's not so easy.

THANKS A LOT DetlevD

with kind regards mp3tag...

---

<div class="post-metadata">

**Author:** ![mp3tag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/5f8ce5/32.png) [@mp3tag](https://community.mp3tag.de/u/mp3tag)\
**Post date:** [May 14, 2015, 8:37am UTC](https://community.mp3tag.de/t/using-replace-with-reg-exp-and-merge-parts-of-different-tagfields/16899/4 "2015-05-14T08:37:55Z")

</div>

please, may i use a variable like %ORIGARTIST% in the 'Replace matches with' field  
while using Action (quick) 'Replace with regular expressions'?

from: ^(._)\s((._))$

with: $1 %ORIGARTIST% $2

don't work here.

---

<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:** [May 14, 2015, 10:26am UTC](https://community.mp3tag.de/t/using-replace-with-reg-exp-and-merge-parts-of-different-tagfields/16899/5 "2015-05-14T10:26:40Z")

</div>

> [@mp3tag](#):
>
> ... Action (quick) 'Replace with regular expressions' ... ^(._)\s((._))$ ... $1 %ORIGARTIST% $2 ... don't work here.

If you need a working solution for your request, ...  
then apply one formatstring from the proposals from post#2 above.

DD.20150514.1426.CEST

---

<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:25pm UTC](https://community.mp3tag.de/t/using-replace-with-reg-exp-and-merge-parts-of-different-tagfields/16899/6 "2026-02-09T12:25:40Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


