I want a simple regex to delete the first instance of everything in a parenthesis, i.e. capture everything after the parenthesis. I wrote a simple code which works: regex101: build, test, and debug regex
But running it on mp3tag gives strange results:
Please test your expressions in MP3tag with Convert>Tag-Tag and the scripting function $regexp()
To replace everything leading in parenthesis, try Convert>Tag-Tag for TITLE:
Format string: $regexp(%title%,^\(.*?\)\s*,)
In general, to address the captured string part, use $1 instead of \1
... and there are a lot of threads that deal with the removal of parenthesis and their contents, e.g.
I found this Action:
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:
\(.+\)