# How To Copy Part Of The Album Name To The Year Field

**URL:** <https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699>\
**Category:** Support\
**Created:** [May 7, 2013, 6:05am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699 "2013-05-07T06:05:09Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)\
**Post date:** [May 7, 2013, 6:05am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/1 "2013-05-07T06:05:09Z")

</div>

Hello, and thanks in advance for any help. Long story short, I stupidly cleared the year field on 15,000 mp3 files and was trying to figure out how to create a regular expression to correct this mistake. All of my album titles are in the format Album Title{Year}, where the year(s) within the brackets is one of three ways, either:

An Example Album Title{1966}

or

Another Example Album Title{1980-89}

or

A Third Example Album Title{1723-1928}

I know it's possible to make an action that will take the numbers between the brackets and copy them to the year field, and in the past I've even made a couple of very, very simple actions, but the fact that I need to copy only part of one field to another field has me rather confused. Please, could some kind soul show me how to do this? Thank you again for your time.

---

<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:** [May 7, 2013, 6:12am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/2 "2013-05-07T06:12:47Z")

</div>

Create an action of the type "Guess value" for %ALBUM%  
Enter as value:  
%album%{%year%}

I am not sure what will happen to the "{1723-1928}"

---

<div class="post-metadata">

**Author:** ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)\
**Post date:** [May 7, 2013, 9:21am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/3 "2013-05-07T09:21:25Z")

</div>

ohrenkino: thanks for your reply. I tried your suggestion and, while it did add the year to the year field, it removed the year-in-brackets from the end of the album field in order to accomplish this 😳 . Do you have any other ideas 🙂 . Thanks again for your time, I appreciate it.

---

<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:** [May 7, 2013, 10:05am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/4 "2013-05-07T10:05:18Z")

</div>

It is not always clear what is meant by "copy" as some use it in the sense of "move". In your case it was meant in the original sense, so sorry that you are left without the year.  
BUT: there is help!

If you create an action of the type "Import value" for %album% and enter this string:  
%dummy%{%year%}

then the album should be left untouched but the year should get filled with that what can be found in the brackets.

If I have spoiled your collection and removed the year at a lot of tracks (sorry for that!), you can easily restore that data with an action of the type "FOrmat value" for ALBUM.  
Enter as format string:  
%album% {%year%}

Run this action only once on the files or you get the year appended more than once.

---

<div class="post-metadata">

**Author:** ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)\
**Post date:** [May 7, 2013, 11:10am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/5 "2013-05-07T11:10:21Z")

</div>

> [@ohrenkino](#):
>
> If you create an action of the type "Import value" for %album% and enter this string:  
> %dummy%{%year%}
> 
> then the album should be left untouched but the year should get filled with that what can be found in the brackets.

When I attempt to create a new action there's no option for "Import value"; the only options with "Import" are "Import cover from file" and "Import text file". I'm using v2.55a, too.

---

<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:** [May 7, 2013, 11:37am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/6 "2013-05-07T11:37:39Z")

</div>

> [@LouieChuckyMerry](#):
>
> When I attempt to create a new action there's no option for "Import value"; the only options with "Import" are "Import cover from file" and "Import text file". I'm using v2.55a, too.

I had my German version running ... it is "Guess values"

---

<div class="post-metadata">

**Author:** ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)\
**Post date:** [May 7, 2013, 11:00pm UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/7 "2013-05-07T23:00:08Z")

</div>

Thanks again for your help. Unfortunately your last suggestion made a real mess of things; luckily I've a recent backup I can employ to fix things. Seems the guess value isn't guessing very well 😉 , as only files with album titles of the format Album Title{xxxx} are having the year added and being properly tagged. Any variation--for example, Album Title{xxxx-xx} or Album Title[Live]{xxxx}--are being mangled. I'm pretty sure that a regular expression can be created that specifies something like "take the numbers within the brackets, not parentheses or braces but brackets only, and copy them to the year field without changing anything else" but I don't know how to create it. Guess I'll put my morning coffee to use and try to figure it out.

---

<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:** [May 8, 2013, 3:34am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/8 "2013-05-08T03:34:50Z")

</div>

> [@LouieChuckyMerry](#):
>
> ...Any variation--for example, Album Title{xxxx-xx} or Album Title[Live]{xxxx}--are being mangled....

Please describe "mangled".  
I am not at all sure whether the year field actually allows to enter a range. Any year that is more elaborate is probably "releasedate".

You could do a twostep with an action of the type format value for YEAR  
Format string:  
$mid(%album%,$add($strstr(%album%,'{'),1),$len(%album%))

and a replace action:  
Replace }  
with noting.

---

<div class="post-metadata">

**Author:** ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)\
**Post date:** [May 8, 2013, 11:25pm UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/9 "2013-05-08T23:25:23Z")

</div>

By mangled I meant that the Album field was being corrupted with braces and bits of the word(s) within the braces, as if the Guess value was confused by the presence of both braces and brackets. No big deal, though, as I simply took my backup, sorted it as well as possible, then used it to replace the original files. Everything is as I'd hoped, I just took the roundabout way there ![:music:](https://community.mp3tag.de/uploads/default/original/1X/2ba05d1ade5eb0d15fc173be6f717dbe63890a70.gif ":music:") . Thanks again for your input, ohrenkino, and I'll check out your two-step action for future use 🙂 .

---

<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:** [May 9, 2013, 5:47pm UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/10 "2013-05-09T17:47:39Z")

</div>

> [@LouieChuckyMerry](#):
>
> By mangled I meant that the Album field was being corrupted with braces and bits of the word(s) within the braces, as if the Guess value was confused by the presence of both braces and brackets. ..

For the honour of MP3tag: I tested a file with "Album Title{xxxx-xx}" and also "Album Title[live]{xxxx-xx}" it worked like a charm.  
I can only be as good as the facts you give me.  
As you described your problem on an abstract level I could only assume that you are able to follow the syntax and know where variations are necessary.  
In short: I doubt that the Guess Value action gets confused. If the pattern is set correctly, then it will transfer the data.

---

<div class="post-metadata">

**Author:** ![LouieChuckyMerry](https://community.mp3tag.de/user_avatar/community.mp3tag.de/louiechuckymerry/32/367_2.png) [@LouieChuckyMerry](https://community.mp3tag.de/u/LouieChuckyMerry)\
**Post date:** [May 9, 2013, 11:15pm UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/11 "2013-05-09T23:15:20Z")

</div>

For my own honor, and the honor of Mp3tag (which I've been using since version 2.37 and appreciate so much that I've donated), I've no reason to lie. So I took 39 folders (each an album), consisting of every possible album title variation I could find, and put them in a single folder. I then opened this folder in Mp3tag and ran a Guess value with the Source format %ALBUM% and the Guessing pattern %dummy%{%year%}--in fact, the same, unedited Action that I'd used before--and it worked perfectly. I'm thus left to believe that I made a mistake when I ran it before, probably something like running the single Action when testing it but then accidentally running multiple Actions when doing the entire 15,000 files. That would be my guess, at least. Anyway, the above Guess value seems dandy, provided you use it properly 😉 . Thanks again for your help ohrenkino, I appreciate it.

---

<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:** [May 10, 2013, 5:51am UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/12 "2013-05-10T05:51:24Z")

</div>

> [@LouieChuckyMerry](#):
>
> ...and it worked perfectly....

That's a relief to hear. Have fun! 😉

---

<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:24pm UTC](https://community.mp3tag.de/t/how-to-copy-part-of-the-album-name-to-the-year-field/14699/13 "2026-02-09T12:24:28Z")

</div>

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


