there are several ways.
Use an action of the type format tag field with regular expression for YEAR and put as format string $right(%_filename%,4)
which takes the rightmost 4 characters and inserts then into year.
Or (second suggestion):
use "Filename - TAG" with a mask like
which wll put the year into YEAR and also create a tag dummy but that can be deleted afterwards.
The preview should show whether you reach your goal.
Hmm, as I understand correctly what has been written above ...
ohrenkino's first suggestion is the simplest way to extract the rightmost four characters from the given filename sting (... but there is no need of handling a regular expression).
Action: Format value
Now I am curious how you got artist and title from the filename string.
Well it looks like, if you use this "artist @ title" as a format string, but it is not a well formed one.
And what action should I use together with this Format string?
To split ...
Armin van Buuren @ A State of Trance 322 01-04-2009.
Into separated tag fields Artist and Ttitle ...
Using format string ...
%artist% @ %title%
Never mind, the Convert Dialogues could not help to solve the task in a straight manner.
But I have found a way to split the filename into three parts and to fill the related tag fields by using a $regexp() function, which prepares the filename string for easy splitting afterwards by the action "Guess values" (in german "Aktion Tag-Felder importieren").
From Filename: Armin van Buuren @ A State of Trance 322 18-10-2007
To Tag Fields:
ARTIST=Armin van Buuren
TITLE=A State of Trance 322
Actiontype 7: Import tag fields (guess values) Source format: $regexp(%_FILENAME%,'^(.+?)÷@÷(.+?)÷(\d\d)-(\d\d)-(\d\d\d\d)$','$1|$2|$5-$4-$3') Guessing pattern: %ARTIST%|%TITLE%|%YEAR% Note: Replace each special ÷ character with one space character.