# How to copy part of one tag and insert in another tag

**URL:** https://community.mp3tag.de/t/how-to-copy-part-of-one-tag-and-insert-in-another-tag/8576
**Category:** Support
**Created:** [July 8, 2009, 3:08am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-tag-and-insert-in-another-tag/8576 "2009-07-08T03:08:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rob\_W](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ad7895/32.png) [@Rob\_W](https://community.mp3tag.de/u/Rob_W)
#### Post date: [July 8, 2009, 3:08am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-tag-and-insert-in-another-tag/8576/1 "2009-07-08T03:08:41Z")

</div>

I need to replace part of the Album tag with part of the Title Tag. How can I do this?

Using the Replace with regular expression I don't appear to be able to reference any field other than the one to be changed. I can locate both fragments with regular expressions.

Thanks.

---

<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: [July 8, 2009, 5:09am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-tag-and-insert-in-another-tag/8576/2 "2009-07-08T05:09:48Z")

</div>

You can do this in different ways, e. g. using a third temporary tagfield.  
One possible solution could be using this scheme.  
With ALBUM = "A B C" and TITLE = "D E F" you will get "ALBUM = "A E C".

_Actiontype 5:_ **Format tag field**  
_Field:_ **ALBUM**  
_Formatstring:_ **$regexp(%ALBUM%,(.) (.) (.),$1 $regexp(%TITLE%,(.) (.) (.),$2) $3)**

DD.20090708.0909.CEST

---

<div class="post-metadata">

### Author: ![Rob\_W](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/ad7895/32.png) [@Rob\_W](https://community.mp3tag.de/u/Rob_W)
#### Post date: [July 8, 2009, 8:13am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-tag-and-insert-in-another-tag/8576/3 "2009-07-08T08:13:34Z")

</div>

> [@DetlevD](#):
>
> You can do this in different ways, e. g. using a third temporary tagfield.  
> One possible solution could be using this scheme.  
> With ALBUM = "A B C" and TITLE = "D E F" you will get "ALBUM = "A E C".
> 
> _Actiontype 5:_ **Format tag field**  
> _Field:_ **ALBUM**  
> _Formatstring:_ **$regexp(%ALBUM%,(.) (.) (.),$1 $regexp(%TITLE%,(.) (.) (.),$2) $3)**
> 
> DD.20090708.0909.CEST

Thanks Detlev for your prompt and helpful reply. Worked fine.

Just to clarify, which fields, if any, in the Replace with Regular Expressions action can functions like $regexp be used?

---

<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:21pm UTC](https://community.mp3tag.de/t/how-to-copy-part-of-one-tag-and-insert-in-another-tag/8576/4 "2026-02-09T12:21:38Z")

</div>


