# using tag data and filename to new tag

**URL:** <https://community.mp3tag.de/t/using-tag-data-and-filename-to-new-tag/18391>\
**Category:** Support\
**Created:** [November 3, 2016, 5:21pm UTC](https://community.mp3tag.de/t/using-tag-data-and-filename-to-new-tag/18391 "2016-11-03T17:21:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![poleraser](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/f9ae1b/32.png) [@poleraser](https://community.mp3tag.de/u/poleraser)\
**Post date:** [November 3, 2016, 5:21pm UTC](https://community.mp3tag.de/t/using-tag-data-and-filename-to-new-tag/18391/1 "2016-11-03T17:21:14Z")

</div>

Hi dear friends, I have this issue and I cannot find a straight way to do it.

My Filename is:  
01-My Love-George Flo(18-08-1950).mp3 - inside the () is the recording date

The Tag have this data:  
Title:  
My Love-George Flo (where George Flo is the singer)

Artist:  
Orq. Joe Greg (that's the music director)

So I try to have my TAG like this:

Title: My Love  
Artist: Orq. Joe Greg with George Flo  
Year: 18-08-1950 (or this can go in the comments)

There must be a way to do this, but I cannot find it.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [November 3, 2016, 5:55pm UTC](https://community.mp3tag.de/t/using-tag-data-and-filename-to-new-tag/18391/2 "2016-11-03T17:55:57Z")

</div>

To append the artist from title to the music director in ARTIST, move the artist from title first to a temporary field tmp\_artist:  
Action "Guess value" (import tag field) for %title%  
Pattern: %title%-%tmp\_artist%  
Now append ARTIST with TMP\_ARTIST:  
Action "Format value" for ARTIST  
Format string: %artist% with %tmp\_artist%

You may now remove the field tmp\_artist

A note on the recording date: the field YEAR only allows 4 digits for best compatibility. The field RELEASETIME allows year, month, day, hour, minute, second. So I would put it there.  
Extract the recording date from the filename:  
Convert\>Filename-Tag:  
Pattern: %dummy%(%releasetime%)

Reformat the imported data to the correct format:  
Action "Replace with regular expression" for RELEASETIME:  
Search string:(\d+)-(\d+)-(\d+)  
Replace string:$3-$2-$1T00:00:00Z

---

<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:** [November 3, 2016, 6:23pm UTC](https://community.mp3tag.de/t/using-tag-data-and-filename-to-new-tag/18391/3 "2016-11-03T18:23:38Z")

</div>

> [@Poleraser](#):
>
> My Filename is:  
> 01-My Love-George Flo(18-08-1950).mp3 - inside the () is the recording date
> 
> Thanks in advance

Create a action group \>\>\>\> Alt+6 then click ![:mt_new:](https://community.mp3tag.de/uploads/default/original/1X/ec5caa1b5d6c43fd0fe30efd3515a713a18c5105.png ":mt\_new:")  
Add the following actions to that group and make sure they're in this order.

Action #1:  
_Action type:_ **Format value**  
_Field:_ **ARTIST**  
_Formatstring:_ **%artist% with $regexp(%title%,'.+?([^-]+$)',$1)**

Action #2:  
_Action type:_ **Format value**  
_Field:_ **TITLE**  
_Formatstring:_ **$regexp(%title%,'(\[1\]+).+',$1)**

Action #3:  
_Action type:_ **Format value**  
_Field:_ **YEAR**  
_Formatstring:_ **$regexp(%\_filename%,'.+(\d{2}-\d{2}-\d{4}).+',$1)**

Action #4:  
_Action type:_ **Format value**  
_Field:_ **TRACK**  
_Formatstring:_ **$num($regexp(%\_filename%,'^0\*(\d+).+',$1),2)**

Run this only once on your files and you're done.

**EDIT:**

You might want to format the track tag also:

Remove Action #4 to the above group if not required.

Note:

```
$num($regexp(%_filename%,^0*(\d+).+,$1),2)

```

Change the 2 in the code above to control what padding you want in the track numbering.

* * *

1. ^-

---

<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/using-tag-data-and-filename-to-new-tag/18391/4 "2026-02-09T12:26:30Z")

</div>


