# Operating with 2 sets of brackets

**URL:** https://community.mp3tag.de/t/operating-with-2-sets-of-brackets/69478
**Category:** Support
**Created:** [August 20, 2025, 2:07pm UTC](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets/69478 "2025-08-20T14:07:22Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 20, 2025, 2:40pm UTC](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets/69478/7 "2025-08-20T14:40:54Z")

</div>

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!)

 ![image](https://community.mp3tag.de/uploads/default/original/3X/d/2/d27513eeb2ebca8a998fc92a9fb5b3bad2bd1ac7.png)

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.)

 ![image](https://community.mp3tag.de/uploads/default/original/3X/0/d/0d2394d34e7c8cdae4ad672b5593080146a96b26.png)

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)

 ![image](https://community.mp3tag.de/uploads/default/original/3X/6/9/69f8035672340856f682a772af09db988760e567.png)

This would result in these 4 fields:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/b/b/bb5773bba4ccb9e54395382139c37459d98c5c1e.png)

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](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets-part-2/70963/2).

---

_[View the full topic](https://community.mp3tag.de/t/operating-with-2-sets-of-brackets/69478)._
