# Modifying titles: Removing last occurence of content in brackets

**URL:** https://community.mp3tag.de/t/modifying-titles-removing-last-occurence-of-content-in-brackets/59513
**Category:** Support
**Created:** [December 26, 2022, 10:42am UTC](https://community.mp3tag.de/t/modifying-titles-removing-last-occurence-of-content-in-brackets/59513 "2022-12-26T10:42:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ian\_Werich](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/9de0a6/32.png) [@Ian\_Werich](https://community.mp3tag.de/u/Ian_Werich)
#### Post date: [December 26, 2022, 10:42am UTC](https://community.mp3tag.de/t/modifying-titles-removing-last-occurence-of-content-in-brackets/59513/1 "2022-12-26T10:42:47Z")

</div>

Hi everyone,

I've labeled a huge number of titles adding a suffix to the very right side of the title in the form of: TITLE (xyzw 1) or TITLE (abcd 2) etc.

Is there a method/regular expression to getting rid of all the suffixs between brackets in order to leave the title only?

Thanks in advance!  
Ian

---

<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: [December 26, 2022, 11:22am UTC](https://community.mp3tag.de/t/modifying-titles-removing-last-occurence-of-content-in-brackets/59513/2 "2022-12-26T11:22:02Z")

</div>

If you search for "[remove part of title](https://community.mp3tag.de/search?q=remove%20part%20of%20title)" you get a lot of already existing answers for your question.

Which ones have you tried already? What exactly doesn't work for which expression?

One of the working expressions could be:  
`$regexp(%TITLE%, \(.*\)$,)`  
This would search for a space, an opening bracket, any character until a closing bracket - and this has to be at the end - to leave brackets and text between brackets before the end untouched, like "My (super) text and other blabla"  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/b/bbf18fd311db79a00652ebb31bae95c71f6ca0c6.png)

---

<div class="post-metadata">

### Author: ![Ian\_Werich](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/9de0a6/32.png) [@Ian\_Werich](https://community.mp3tag.de/u/Ian_Werich)
#### Post date: [December 26, 2022, 3:04pm UTC](https://community.mp3tag.de/t/modifying-titles-removing-last-occurence-of-content-in-brackets/59513/3 "2022-12-26T15:04:51Z")

</div>

Thank you for the quick reaction!

I've found a suggestion by Florian about my problem:

Guess value  
Source: `%title%`  
Format string: `%title% (%dummy%)`

It works fine, but I should now better specify my requirements.  
Some titles sound like **"Chasing pavements (Live) (xyzw 1)**" or "**Tango guapo (20sec. ouverture) (abcd 1)**" and I would like to remove only the last suffix, i.e. after the adjustment the titles should be "**Chasing pavements (Live)**" or "**Tango guapo (20sec. ouverture)**".

Thank you for your help.  
Ian

---

<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: [December 26, 2022, 3:23pm UTC](https://community.mp3tag.de/t/modifying-titles-removing-last-occurence-of-content-in-brackets/59513/4 "2022-12-26T15:23:48Z")

</div>

> [@Ian\_Werich](#):
>
> I would like to remove only the last suffix

`$regexp(%TITLE%,' \(([^)]*)\)[^(]*$',)`  
 ![image](https://community.mp3tag.de/uploads/default/original/2X/4/48fc03e2dab8203b7816424fb73090af703f40bf.png)  
Examples and explanation on [regex101](https://regex101.com/r/WiXtrx/1)

---

<div class="post-metadata">

### Author: ![Ian\_Werich](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/i/9de0a6/32.png) [@Ian\_Werich](https://community.mp3tag.de/u/Ian_Werich)
#### Post date: [December 26, 2022, 3:48pm UTC](https://community.mp3tag.de/t/modifying-titles-removing-last-occurence-of-content-in-brackets/59513/5 "2022-12-26T15:48:20Z")

</div>

Super!

Thank you very very much!  
Ian

---

<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: [January 25, 2023, 3:48pm UTC](https://community.mp3tag.de/t/modifying-titles-removing-last-occurence-of-content-in-brackets/59513/6 "2023-01-25T15:48:51Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
