# Seperate the year field from the title

**URL:** https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687
**Category:** Support
**Created:** [November 13, 2011, 4:58am UTC](https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687 "2011-11-13T04:58:36Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![kasunt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/54ee81/32.png) [@kasunt](https://community.mp3tag.de/u/kasunt)
#### Post date: [November 13, 2011, 4:58am UTC](https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687/1 "2011-11-13T04:58:36Z")

</div>

Hi folks,

I want to remove the year from the "title" and copy it to the "year" field. How can I achieve this ?

For e.g.

Original Title: Nostalgia ft. Masta Ace (2007)  
New Title: Nostalgia ft. Masta Ace  
Year: 2007

Original Title: Check Yo Self (Remix) ft. Das Efx (2001)  
New Title: Check Yo Self (Remix) ft. Das Efx  
Year: 2001

Original Title: Give It 2 You (Remix) (1995)  
New Title: Give It 2 You (Remix)  
Year: 1995

Thanks in advance ![:rolleyes:](https://community.mp3tag.de/uploads/default/original/1X/3a79e8b0b7d169b30216785521d7c6f4f895c421.gif ":rolleyes:")

---

<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: [November 13, 2011, 5:55am UTC](https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687/2 "2011-11-13T05:55:19Z")

</div>

> [@kasunt](#):
>
> ... I want to remove the year from the "title" and copy it to the "year" field. How can I achieve this ?  
> For e.g.  
> Original Title: Nostalgia ft. Masta Ace (2007)  
> New Title: Nostalgia ft. Masta Ace  
> Year: 2007  
> ...

Action: Guess values  
Source format: %TITLE%  
Guessing pattern: %TITLE% (%YEAR%)

DD.20111113.0755

---

<div class="post-metadata">

### Author: ![kasunt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/54ee81/32.png) [@kasunt](https://community.mp3tag.de/u/kasunt)
#### Post date: [November 13, 2011, 6:04am UTC](https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687/3 "2011-11-13T06:04:21Z")

</div>

Thanks DetlevD

I tried to use Format value with,

Field: %YEAR%  
Format String: $regexp(%TITLE%, '^(.+)\s(([0-9]{4}))$','$2')

It didnt seem to work though. Any reason why it could be ? Atleast i know there is an alternative now 🙂

> [@DetlevD](#):
>
> Action: Guess values  
> Source format: %TITLE%  
> Guessing pattern: %TITLE% (%YEAR%)
> 
> DD.20111113.0755

---

<div class="post-metadata">

### Author: ![kasunt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/54ee81/32.png) [@kasunt](https://community.mp3tag.de/u/kasunt)
#### Post date: [November 13, 2011, 6:09am UTC](https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687/4 "2011-11-13T06:09:31Z")

</div>

Also "Guess values" doesnt work when you have,

Test String (Remix) (1995)

It splits this to,

Title: Test String  
Year: Remix) (1995

---

<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: [November 13, 2011, 7:39am UTC](https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687/5 "2011-11-13T07:39:16Z")

</div>

> [@kasunt](#):
>
> Also "Guess values" doesnt work when you have, Test String (Remix) (1995)  
> It splits this to,  
> Title: Test String  
> Year: Remix) (1995

Yes, you are right.

Try this ...  
Action: Guess values  
Source format: **$regexp(%TITLE%,'^(.+)\s((.+))$','$1===$2')**  
Guessing pattern: **%TITLE%===%YEAR%**

... or try this excentric innovative action group ...

Begin Action Group **Test\_2011#20111113.GuessValues** 

Action #1  
_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format \_\_:_ **$reverse(%TITLE%)**  
_Guessing pattern:_ **)%YEAR%( %TITLE%**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **YEAR**  
_Formatstring:_ **$reverse(%YEAR%)**

 

Action #3  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TITLE**  
_Formatstring:_ **$reverse(%TITLE%)**

 

End Action Group **Test\_2011#20111113.GuessValues** (3 Actions)

 

DD.20111113.0950.CET

---

<div class="post-metadata">

### Author: ![kasunt](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/54ee81/32.png) [@kasunt](https://community.mp3tag.de/u/kasunt)
#### Post date: [November 13, 2011, 9:39am UTC](https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687/6 "2011-11-13T09:39:33Z")

</div>

Wow ![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:") Thanks a bunch

Its working like a charm

A++++++++++ your answer

> [@DetlevD](#):
>
> Yes, you are right.
> 
> Try this ...  
> Action: Guess values  
> Source format: **$regexp(%TITLE%,'^(.+)\s((.+))$','$1===$2')**  
> Guessing pattern: **%TITLE%===%YEAR%**
> 
> ... or try this excentric innovative action group ...
> 
> Begin Action Group **Test\_2011#20111113.GuessValues** 
> 
> Action #1  
> _Actiontype 7:_ **Import tag fields (guess values)**  
> _Source format \_\_:_ **$reverse(%TITLE%)**  
> _Guessing pattern:_ **)%YEAR%( %TITLE%**
> 
>  
> 
> Action #2  
> _Actiontype 5:_ **Format value**  
> _Field \_\_\_\_\_\_:_ **YEAR**  
> _Formatstring:_ **$reverse(%YEAR%)**
> 
>  
> 
> Action #3  
> _Actiontype 5:_ **Format value**  
> _Field \_\_\_\_\_\_:_ **TITLE**  
> _Formatstring:_ **$reverse(%TITLE%)**
> 
>  
> 
> End Action Group **Test\_2011#20111113.GuessValues** (3 Actions)
> 
>  
> 
> DD.20111113.0950.CET

---

<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:23pm UTC](https://community.mp3tag.de/t/seperate-the-year-field-from-the-title/12687/7 "2026-02-09T12:23:26Z")

</div>


