# Copy year from filename

**URL:** https://community.mp3tag.de/t/copy-year-from-filename/6444
**Category:** Support
**Created:** [March 13, 2008, 7:40pm UTC](https://community.mp3tag.de/t/copy-year-from-filename/6444 "2008-03-13T19:40:40Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Fazant](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/858c86/32.png) [@Fazant](https://community.mp3tag.de/u/Fazant)
#### Post date: [March 13, 2008, 7:40pm UTC](https://community.mp3tag.de/t/copy-year-from-filename/6444/1 "2008-03-13T19:40:40Z")

</div>

Hi,

Since a few weeks I'm a enthusiastic user of mp3tag. It's a great tool to structure and optimize my mp3 database. By means of trial and error I'm using several actions. One I can't get to work is to copy a year which is mentioned in the title to the year field. String that I'm using is:  
format value "YEAR": %\_FILENAME%  
Field: Year  
Regexpr: ^(.+)\s(.+)\s(.+)\d+  
Replace matches with: $3

Result is almost fine except that the number stated in the Year field resembles 3 # iso 4 e.g. 1949 = 194

Who can help me on the right string.

Thanks

---

<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:20pm UTC](https://community.mp3tag.de/t/copy-year-from-filename/6444/2 "2026-02-09T12:20:50Z")

</div>


