# Removing Parenthesis in Titles Along with Spaces

**URL:** https://community.mp3tag.de/t/removing-parenthesis-in-titles-along-with-spaces/58917
**Category:** Support
**Created:** [October 29, 2022, 2:17pm UTC](https://community.mp3tag.de/t/removing-parenthesis-in-titles-along-with-spaces/58917 "2022-10-29T14:17:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Grey](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/b782af/32.png) [@Grey](https://community.mp3tag.de/u/Grey)
#### Post date: [October 29, 2022, 2:17pm UTC](https://community.mp3tag.de/t/removing-parenthesis-in-titles-along-with-spaces/58917/1 "2022-10-29T14:17:23Z")

</div>

I found this Action:

> [@Removing text in brackets from Song Title](https://community.mp3tag.de/t/removing-text-in-brackets-from-song-title/11614):
>
> Hi Friends Does anyone know how to remove text in brackets from a song title. I have a few tracks that are labelled something like this Beat Dis (12" Extended) I want to remove all text inside the brackets as well as the brackets themselves so I am left with just Beat Dis I would appreciate any assitance Peace to you all KiloHurtz

It works but it leaves a space in the title. It's not that big a deal when the parenthesis are at the end, but it's an issue when they're at the beginning. "(I Just) Died in Your Arms" becomes " Died in Your Arms".

Can the parenthesis be removed along with the extra space?

Edit: Here's what that linked Action is doing so you don't have to download it to see:

Regular expression:  
`\(.+\)`

---

<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: [October 29, 2022, 2:20pm UTC](https://community.mp3tag.de/t/removing-parenthesis-in-titles-along-with-spaces/58917/2 "2022-10-29T14:20:21Z")

</div>

You would have to show us what you typed in as code.  
it could be that your code is missing a space character at a vital position.  
Or you could use another action of the type "Format value" for TITLE  
Format string: $trim(%title%)

Edit:

> [@Grey](#):
>
> `\(.+\)`

Try  
`\s*\(.+\)\s*`

---

<div class="post-metadata">

### Author: ![Grey](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/g/b782af/32.png) [@Grey](https://community.mp3tag.de/u/Grey)
#### Post date: [October 29, 2022, 2:26pm UTC](https://community.mp3tag.de/t/removing-parenthesis-in-titles-along-with-spaces/58917/3 "2022-10-29T14:26:30Z")

</div>

> [@ohrenkino](#):
>
> `\s*\(.+\)\s*`

Works perfectly. Thank you!

---

<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: [November 28, 2022, 2:26pm UTC](https://community.mp3tag.de/t/removing-parenthesis-in-titles-along-with-spaces/58917/4 "2022-11-28T14:26:43Z")

</div>

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