I can remove Parenthesis but can't remove Brackets

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

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

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

thank you. that worked great!

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