# Remove characters/() at end of title

**URL:** <https://community.mp3tag.de/t/remove-characters-at-end-of-title/17214>\
**Category:** Support\
**Created:** [September 7, 2015, 3:21pm UTC](https://community.mp3tag.de/t/remove-characters-at-end-of-title/17214 "2015-09-07T15:21:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![coolheadphones](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/f4b2a3/32.png) [@coolheadphones](https://community.mp3tag.de/u/coolheadphones)\
**Post date:** [September 7, 2015, 3:21pm UTC](https://community.mp3tag.de/t/remove-characters-at-end-of-title/17214/1 "2015-09-07T15:21:03Z")

</div>

I have a load of songs where they all have writing in () at the end of the title, and I cant work out how to get rid of them.

Example:  
Walk Right In Belmont (Pm 3019, 4432-2)  
Blues (My Naughty Sweetie Gives To Me) (Pm 20014, 800-2)

How would I remove the last set of brackets and everything they contain? I thought about tag from file name "%title% (%dummy%)" but that wouldn't work on the 2nd example...

Help would be hugely appreciated.

_edit_ I didn't word that title good at all lol

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [September 7, 2015, 3:32pm UTC](https://community.mp3tag.de/t/remove-characters-at-end-of-title/17214/2 "2015-09-07T15:32:06Z")

</div>

I think there is a very similar problem in  
[/t/17209/1](https://community.mp3tag.de/t/17209/1)

Anyway, I think there is another basic problem:  
nless you have a definite identifier that tells formally which brackets you want to keep and which you don't, you end up with manual treatment.  
What I mean:  
How do you distinguish ...  
Walk Right In Belmont (Pm 3019, 4432-2) -\> one pair of brackets, has to be treated  
from  
Blues (My Naughty Sweetie Gives To Me) -\> one pair of brackets, must not be treated (any more)?

If the unwanted bracket always has a pattern of two letters, number, komma, numbers, hyphen, number  
then this could be expressed as a regular expression and searched for:  
Replace with regular expression  
Search string: (.. \d+, \d+-\d+)  
Replace string:  
(leave empty)

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [September 7, 2015, 4:24pm UTC](https://community.mp3tag.de/t/remove-characters-at-end-of-title/17214/3 "2015-09-07T16:24:03Z")

</div>

> [@HoodsBreath](#):
>
> ... Example:  
> Walk Right In Belmont (Pm 3019, 4432-2)  
> Blues (My Naughty Sweetie Gives To Me) (Pm 20014, 800-2)  
> How would I remove the last set of brackets and everything they contain? ...

**Action "Format value" Field ......: TITLE Formatstring: $ifgreater($sub($len(%TITLE%),1),$len($replace(%TITLE%,'(',)),$trimRight($left(%TITLE%,$strrchr(%TITLE%,'(')),' ('),%TITLE%)**

This removes from the right side of a string, one group of round brackets including the text between the brackets, ... but leaves at least one set of round brackets.

... or ...

**Action "Format value" Field ......: TITLE Formatstring: $regexp(%TITLE%,'\s\*\(Pm.\*\)$',)**

This removes from the right side of a string, one group of round brackets having the text " Pm..."

DD.20150907.2031.CEST

---

<div class="post-metadata">

**Author:** ![coolheadphones](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/f4b2a3/32.png) [@coolheadphones](https://community.mp3tag.de/u/coolheadphones)\
**Post date:** [September 7, 2015, 4:55pm UTC](https://community.mp3tag.de/t/remove-characters-at-end-of-title/17214/4 "2015-09-07T16:55:17Z")

</div>

> [@DetlevD](#):
>
> ... or ...
> 
> **Action "Format value" Field ......: TITLE Formatstring: $regexp(%TITLE%,'\s\*\(Pm.\*\)$',)**
> 
> This removes from the right side of a string, one group of round brackets having the text " Pm..."
> 
> DD.20150907.2031.CEST

ohrenkino's one worked well on most of them, but this one is great as I can easily change it for the ones it didn't work on!

Thanks both of you for the help! This has saved so much time 🕶

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:25pm UTC](https://community.mp3tag.de/t/remove-characters-at-end-of-title/17214/5 "2026-02-09T12:25:51Z")

</div>

Closed on February 9, 2026, 12:25pm UTC


