I want an Action that sets "Track" equal to the last 2 characters of Filename, please.
Try an action of the type "Format value" or Convert>Tag-Tag for TRACK
Format string: $regexp(%_filename%,.*(..),$1)
It could be that a more elegant solution would be possible. But without a real example this is the best I could think of.
Beside the Action itself:
Please be aware that most player except a number in TRACK, not any other random text.
Another attempt could be Convert Tag -> Tag with
$right(%_FILENAME%,2)
This will replace whatever content currently exists in TRACK with the last 2 characters from the filename.
From the help-documentation:
$right(x,n)returns the rightmost n characters of text x.
Thank you very very much, ohrenkino and LyricsLover! I tested both solutions and both worked perfectly!
I deeply appreciate all the help with tag programming I've recieved from this community over the years, thanks for being one of the best places on the Internet!
