# Extracting and moving content from tags into other tags

**URL:** <https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130>\
**Category:** Support\
**Created:** [August 7, 2022, 12:11pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130 "2022-08-07T12:11:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 12:11pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/1 "2022-08-07T12:11:23Z")

</div>

It happened to me to use material from friends who use a mysterious way of tagging  
\*file shows the name this way:  
name-surname-i-am- the nicest-boy  
\*tag title is shown this way  
name surname- _i am the nicest boy_  
\*tag artist shows the friends name  
iskandar zulkarnain  
\*tag album show the album etc

Is there a fast way to  
1/ move the tag artist field into the album field  
2/ 'cut' name surname from the title field and paste into the artist field but retain the real title on the title tag?  
For the moment i do this work manually .Sometimes it s a lot of tasking

Thank you for yur help

---

<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:** [August 7, 2022, 12:33pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/2 "2022-08-07T12:33:50Z")

</div>

I'm not sure if I understand what you want to do:

1.) With **move the tag artist field into album field** you mean you want to delete it in the artist field (blank the artist field) and overwrite the current content in the album field with the content from artist field completely?

2.) If you 'cut' something, you delete it at the source and don't retain it. Do you want to COPY the name and surname from title into the artist field?

3.) What do you mean with "real title"?

It would be easier to understand if you show us some real example tags with real content BEFORE and AFTER the changes you want to do. So we can see what exactly do you want to COPY or DELETE and what to keep and what to remove.

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 1:15pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/3 "2022-08-07T13:15:17Z")

</div>

![Στιγμιότυπο οθόνης 2022-08-07 160713](https://community.mp3tag.de/uploads/default/original/2X/2/2e42344bfb9999e62be6ab8e40596739669f7f33.jpeg)

this is the tagging before the process  
the

 ![2z](https://community.mp3tag.de/uploads/default/original/2X/b/baefcdeeec926023e4aaa2f8ee5ac59dbbc2ace9.jpeg)  
this is the result

I hop you understand on what i do with two options  
In the first two files i kept the underscore while in the bottom two i removed them There are many cases tat this underscore is replaced with standard dash (-)

---

<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:** [August 7, 2022, 1:28pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/4 "2022-08-07T13:28:08Z")

</div>

To be sure:

1.) You want to move the content of ARTIST ("Husein") to ALBUM (existing content of ALBUM will be overwritten with "Husein")

2.) You want to move the content in TITLE before the underscore ("ali ahamed anwar") to ARTIST (existing content in ARTIST will be overwritten with "ali ahamed anwar")

3.) You want to delete the space the underscore and space at the start of TITLE and at the end of ARTIST?

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 1:44pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/5 "2022-08-07T13:44:25Z")

</div>

> [@LyricsLover](#):
>
> To be sure:
> 
> 1.) You want to move the content of ARTIST ("Husein") to ALBUM (existing content of ALBUM will be overwritten with "Husein")

_my idea is that the content of the 'artist' column moves to album as you could do that in an excel spreadsheet Just mark copy and paste it for much faster service Posters can vary_

> [@LyricsLover](#):
>
> 2.) You want to move the content in TITLE before the underscore ("ali ahamed anwar") to ARTIST (existing content in ARTIST will be overwritten with "ali ahamed anwar")

_Yes but the same manner as above . Singer names can differ as the posters_

> [@LyricsLover](#):
>
> 3.) You want to delete the space the underscore and space at the start of TITLE and at the end of ARTIST?

_Good idea !_

---

<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:** [August 7, 2022, 1:46pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/6 "2022-08-07T13:46:54Z")

</div>

You could try it with this 3 [Actions](https://docs.mp3tag.de/actions/) with Action type "[Format value](https://docs.mp3tag.de/actions/format/)":

1.) Field: ALBUM  
Format String:  
`%ARTIST%`

2.) Field: ARTIST  
Format String:  
`$regexp(%TITLE%,(.*) _ (.*),$2)`

Short explanation: Create 2 capture groups, one with the content before space underscore space and one with the content after space underscore space. Put the second content into the field ARTIST.

3.) Field: TITLE  
Format String:  
`$regexp(%TITLE%,(.*) _ (.*),$1)`

Short explanation: Create 2 capture groups, one with the content before space underscore space and one with the content after space underscore space. Put the first content into the field TITLE.

You can put these 3 Actions in 1 Action Group and it looks like this:  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/f/fd1c8ec7e8a89acf2146d24de4dfda33108bf23a.png)

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 1:47pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/7 "2022-08-07T13:47:57Z")

</div>

the PS : hope that this idea is easy to you to implement such automation.

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 1:49pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/8 "2022-08-07T13:49:42Z")

</div>

OK thank you very much

---

<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:** [August 7, 2022, 1:51pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/9 "2022-08-07T13:51:59Z")

</div>

The linked documenation will help you to create this actions. 😉  
Please ask us for specific help if you need support to create these actions,

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 2:01pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/10 "2022-08-07T14:01:56Z")

</div>

> [@LyricsLover](#):
>
> $regexp(%TITLE%,(._) \_ (._),$1)

 ![d3](https://community.mp3tag.de/uploads/default/original/2X/f/f805377f1140e29cd33cb960d0fd059281c9ef48.jpeg)  
Somethin goes bad Unfortunately the singer goes to title and tile goes to artist..  
addition  
THIS HAPPENED AFTER MAKING THE ABOVE ACTION AND INSISTED IN THIS WAY WITH THE FORMAT AS ALREADY NOTICED: IN TITLE FIELD  
SINGER SINGER SINGER - TITLE TITLE TITLE

---

<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:** [August 7, 2022, 2:06pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/11 "2022-08-07T14:06:49Z")

</div>

To use a regular expression, the original content has to EXACTLY match the expression.  
Your TITLE in the last example does not have an underscore and does not have the artist in front of the title name as it was shown in the first example.

Such an automation only works, if your source tag TITLE contains always the same parts, like  
`some artist name before the space underscore space` \_ `followed by some title name after the underscore `

In your last example, there is nothing in TITLE what could be used to divide parts into other tags.

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 2:57pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/12 "2022-08-07T14:57:27Z")

</div>

i tried many times to do that ut as the problem continued i desist from experimenting  
i will possibly try to exchange the artist and title fields by using dummy fields

---

<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:** [August 7, 2022, 3:04pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/13 "2022-08-07T15:04:19Z")

</div>

You should try to get some structure in your tags and/or filename.  
It is impossible to use any automation with a filename like  
`ali-ahamed-anwar-cinta-pandang-pertama-1982.mp3`  
or TITLEs that contain either  
`a romzi`  
or  
`ali ahamed anwar - cinta pandang pertama (1982)`

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 3:08pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/14 "2022-08-07T15:08:56Z")

</div>

I m experimenting in the tags .instead f what i expected the singer remains in the title and title movies in the artist field

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 3:41pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/15 "2022-08-07T15:41:54Z")

</div>

Finally i found the solution using this field exchange to restore the names adna addied int the underscore  
Unnecessary text in titles as this in (parentheses) as in the photo

![Στιγμιότυπο οθόνης 2022-08-07 184038](https://community.mp3tag.de/uploads/default/original/2X/2/2a8c968dd7971abef4c935d32dcc39fdc590fdcb.jpeg)

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 7, 2022, 6:57pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/16 "2022-08-07T18:57:39Z")

</div>

![d6](https://community.mp3tag.de/uploads/default/original/2X/c/caf96ab17b38e6740f09d013cfe2dc71b3206325.jpeg)

FOR ME THE SOLUTION IS SHOWN ABOVE  
JUST USING UNUSED FIELDS MOVIE THE CONTENT OF THESE FIELDS TITLE AND ARTIST ]AND FINALLY REPLACE THEM

---

<div class="post-metadata">

**Author:** ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)\
**Post date:** [August 8, 2022, 10:29am UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/17 "2022-08-08T10:29:39Z")

</div>

I'm chiming in here, because the post marked as solution is most likely only a solution for the special situation the OP is dealing with.

A more general solution which is probably also helpful for other users potentially finding this topic in the future is

> [@Extracting and moving content from tags into other tags](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/6):
>
> You could try it with this 3 [Actions](https://docs.mp3tag.de/actions/) with Action type "[Format value](https://docs.mp3tag.de/actions/format/)": 1.) Field: ALBUM Format String: %ARTIST% 2.) Field: ARTIST Format String: $regexp(%TITLE%,(.\*) \_ (.\*),$2) Short explanation: Create 2 capture groups, one with the content before space underscore space and one with the content after space underscore space. Put the second content into the field ARTIST. 3.) Field: TITLE Format String: $regexp(%TITLE%,(.\*) \_ (.\*),$1) Short explanation: Create 2 capture groups, one with …

_And as a side note as a moderator/admin of this community: @zach, did you know that writing in all caps is considered shouting on the Internet?_

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 8, 2022, 12:53pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/18 "2022-08-08T12:53:08Z")

</div>

> [@Florian](#):
>
> And as a side note as a moderator/admin of this community: @zach, did you know that writing in all caps is considered shouting on the Internet?

i know that since 90s but it was as ADD-ON INFO TO THE ORIGINAL ARTICLE as a way to show some difference

new example of not successful action

 ![Στιγμιότυπο οθόνης 2022-08-08 154624](https://community.mp3tag.de/uploads/default/original/2X/8/8844f306699d092d046d6c554f604ac035198421.jpeg)  
the singer is shown in the left of the underscore

 ![Στιγμιότυπο οθόνης 2022-08-08 154705](https://community.mp3tag.de/uploads/default/original/2X/e/ebad4bd1fe4b9099b1eaa06494b66591188fb709.jpeg)  
after the action noticed in the post 5 the singer remains in the title while the title moves to the singer field .this is the reason i played with fields to restore this error

 ![Στιγμιότυπο οθόνης 2022-08-08 155439](https://community.mp3tag.de/uploads/default/original/2X/f/f9671dccec619356f3f81c92bca41f4b049e5f62.jpeg)  
doing the field inversion restores the contents in the proper fields

I kept both versions just in case it ....works later !

---

<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:** [August 8, 2022, 1:12pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/19 "2022-08-08T13:12:05Z")

</div>

You can just swap the use of `$1` and `$2` (holding the matched content from the regular expression):

If you want to copy the part BEFORE the space underscore space from TITLE to ARTIST, use an Action with "Format value":  
Field: ARTIST  
Format String:  
`$regexp(%TITLE%,(.*) _ (.*),$1)`

If you want to keep only the part AFTER the space underscore space in TITLE, use  
Field: TITLE  
Format String:  
`$regexp(%TITLE%,(.*) _ (.*),$2)`

Please don't forget to execute the first step (copy content from ARTIST to ALBUM) before you use the above 2 actions.

---

<div class="post-metadata">

**Author:** ![zach](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/z/51bf81/32.png) [@zach](https://community.mp3tag.de/u/zach)\
**Post date:** [August 8, 2022, 1:20pm UTC](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130/20 "2022-08-08T13:20:37Z")

</div>

yes did tat with duplicate and worked ! thank you once again !  
so **before** means on the left and **after** means on the right  
this is what we call "lost in translation" 😀

[Next page](https://community.mp3tag.de/t/extracting-and-moving-content-from-tags-into-other-tags/58130.md?page=2)
