Operating with 2 sets of brackets

Hi All - my first post!

I have a quick question regarding filenames with two sets of brackets.

I have a filename in the format:

01 - Kiss - God Gave Rock & Roll To You (Longer Version) (1992)

I would like to separate it up into the following fields:

Track: 01

Artist: Kiss

Title: God Gave Rock & Roll To You (Longer Version)

Year: 1992

Finding a way to keep the first bracketed text in the title and still extract the year correctly has me stumped. Any help would be appreciated!

Thanks!!

Hi there

Select your files and go to filename > tag (you can Alt+2 to shortcut it), and use :

%track% - %artist% - Title (%year%)

To understand, everything between %% will be used as info used for the tags
Everything which is not into a double %, will be spared, but it will be used as a “guide” or structure for the app to understand were it go so you have to write it or else the app will not understand how to deal with it

So %track% - %artist% - Title (%year%)
the first “ - “ will be skipped, the 2nd one too, the “ (“ before the year too, and the last “)” will be spared too

A good thing to help here, is alongside with you entering this '“formula”, mp3tag will show you the instant result with your file (just look bellow the windows)

@flowrian Please test your answer before posting.

The above solution does not work as you can see from the missing preview :wink:

Oh yes I see, the app catch the first “(“ so it think the %year% start here, I completely miss the main point sorry

Mhmm if I find a way I’ll tell you

Not perfect but if you want a quick trick to obtain it before someone give you the perfect solution, you can :

%track% - %artist% - %title% (1992)

This way you will just miss the year tag, but you can put it manually after that in 2 seconds
Downside is you will have to change the year for every album so not friendly for mass tagging

Thanks for the fast replies!

I have a LOT of files I am operating on, so an elegant solution is what I’ve been trying to find.

I would solve it with these 3 steps:

1.) Convert Filename -> Tag with this Format string
%track% - %artist% - %title%
(this fills the year from the filename to your TITLE too!)

2.) Use Convert Tag -> Tag for the Field YEAR with this Format string:
$regexp(%TITLE%,(.*)\((\d{4})\)$,$2)
(This fills the 4-digit year inside brackets at the end of TITLE into a new YEAR field.)

3.) Use Convert Tag -> Tag for the Field TITLE with this Format string:
$regexp(%TITLE%,(.*)\((\d{4})\)$,$1)
$regexp(%TITLE%,(.*) \((\d{4})\)$,$1)
(This removes the space, the 4-digit year and the brackets at the end of TITLE)
It is nearly the same regular expression, just switch from $2 to $1 in the replace-part after the comma)

This would result in these 4 fields:

Please test it carefully.
And as always with regular expressions: They only works for the given specific use case!

Update 29.3.2026
To avoid a trailing space in the TITLE, please use the modified regular expression in step #3.
Thanks to @ohrenkino for the fix.

Thanks for that solution it works well!!