# I can remove Parenthesis but can't remove Brackets

**URL:** <https://community.mp3tag.de/t/i-can-remove-parenthesis-but-cant-remove-brackets/59406>\
**Category:** Support\
**Created:** [December 14, 2022, 7:31pm UTC](https://community.mp3tag.de/t/i-can-remove-parenthesis-but-cant-remove-brackets/59406 "2022-12-14T19:31:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bravoland](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bravoland/32/12817_2.png) [@bravoland](https://community.mp3tag.de/u/bravoland)\
**Post date:** [December 14, 2022, 7:31pm UTC](https://community.mp3tag.de/t/i-can-remove-parenthesis-but-cant-remove-brackets/59406/1 "2022-12-14T19:31:56Z")

</div>

First of all, i apologize, as i know similar topics have been posted countless times, but I haven't been able to get it working based on trying what I see in other posts.

I have Title Metadata for some songs like  
Happy Birthday (single mix)

and for other songs like  
Happy Birthday [Mega mix]

I just want the Title data to show Happy Birthday  
I can use the following expression  
`\s*\([^)]+\)([^)]*)$`  
to remove Parenthesis and text in the parenthesis on the first example just fine.  
however, I haven't figured out what to use to remove brackets and the text in those brackets. can anyone paste the line I should use here to remove anything in brackets or parentheses?

![image](https://community.mp3tag.de/uploads/default/original/2X/5/55dfc5f136d90ede13b22bffb838c02165bcced9.png)

`\s*\([^)]+\)([^)]*)$`

---

<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:** [December 14, 2022, 7:42pm UTC](https://community.mp3tag.de/t/i-can-remove-parenthesis-but-cant-remove-brackets/59406/2 "2022-12-14T19:42:27Z")

</div>

You could try:  
Format value for TITLE  
Format string: `$regexp(%title%,'\s*(\(|\[).*',)`

---

<div class="post-metadata">

**Author:** ![bravoland](https://community.mp3tag.de/user_avatar/community.mp3tag.de/bravoland/32/12817_2.png) [@bravoland](https://community.mp3tag.de/u/bravoland)\
**Post date:** [December 14, 2022, 7:56pm UTC](https://community.mp3tag.de/t/i-can-remove-parenthesis-but-cant-remove-brackets/59406/3 "2022-12-14T19:56:51Z")

</div>

> [@ohrenkino](#):
>
> '\s\*((|[).\*'

thank you. that worked great!

---

<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 13, 2023, 7:57pm UTC](https://community.mp3tag.de/t/i-can-remove-parenthesis-but-cant-remove-brackets/59406/4 "2023-01-13T19:57:02Z")

</div>

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