# Action to Extract Year From Album Field

**URL:** <https://community.mp3tag.de/t/action-to-extract-year-from-album-field/42318>\
**Category:** Support\
**Created:** [July 12, 2018, 3:19pm UTC](https://community.mp3tag.de/t/action-to-extract-year-from-album-field/42318 "2018-07-12T15:19:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![djrichiep](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djrichiep/32/5440_2.png) [@djrichiep](https://community.mp3tag.de/u/djrichiep)\
**Post date:** [July 12, 2018, 3:19pm UTC](https://community.mp3tag.de/t/action-to-extract-year-from-album-field/42318/1 "2018-07-12T15:19:19Z")

</div>

Hello,  
I want to create an action that will pull the Year out of the Album field. The "albums" I am working with all follow the same naming pattern:

XXXX YEAR-00-00 XXXXXX XXXXXXXXX

How do I set the action to pull just the 4 digit YEAR out of that string? Thank you!

---

<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:** [July 12, 2018, 3:33pm UTC](https://community.mp3tag.de/t/action-to-extract-year-from-album-field/42318/2 "2018-07-12T15:33:53Z")

</div>

Try an action of the type "Guess value"  
Source: %album%  
Target: %dummy% %year%-%dummy%

---

<div class="post-metadata">

**Author:** ![djrichiep](https://community.mp3tag.de/user_avatar/community.mp3tag.de/djrichiep/32/5440_2.png) [@djrichiep](https://community.mp3tag.de/u/djrichiep)\
**Post date:** [July 12, 2018, 3:46pm UTC](https://community.mp3tag.de/t/action-to-extract-year-from-album-field/42318/3 "2018-07-12T15:46:18Z")

</div>

ohrenkino it worked perfectly, thank you!

---

<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:27pm UTC](https://community.mp3tag.de/t/action-to-extract-year-from-album-field/42318/4 "2026-02-09T12:27:32Z")

</div>


