How to convert Track Tag from end of filename?

Hi,

I read a lot, but couldn't find a solution to extract the Track Tag from filenames of different formats, where the only common rule is, that the track numbers are the last two digits before the common extension .mp3, like so:

%dummy% - %dummy% - xx.mp3

where xx ist the track number and the number of dummies may differ.

I tried several variations of a new Guessing Value Action as mentioned on /t/11802/1 :

Source format > %_filename_ext%
Guessing Pattern > %dummy% - %track%.mp3

but it didn't work, mainly because the number of dummies varies, i.e.

%dummy% - %dummy% - %dummy% - xx.mp3
or
%dummy% - %dummy% - %dummy% - %dummy% - xx.mp3

How do I tell mp3tag to take the last 2 digits just before .mp3 of the filename and to write them in the Track Tag?

Thx for help :slight_smile:

Try a format value action for TRACK
Enter as format string: $right(%_filename%,2)

Genius, Thx!