Song Title (featuring Artist) (Extended Version) - removing the parenthesis of the featuring artist

Hi all,

I am looking to remove the parenthesis of (feat. Artist) in the title field. From various searches in this community forum (thank you!), I have managed to do this with the following RegEx

$regexp(%TITLE%,'[([]?(?:ft|feat|featuring)\.?\s+(.+)[)]]?\s*','feat. $1',1)

Thing is, when I have "Song Title (feat. Artist) (Extended Version)", the above sets the title to "Song Title feat. Artists) (Extended Version", removing the parenthesis at the end very of the title, rather than the one at the end of the featuring artist.

I am sure it's something simple I am missing but I can't work it out.

Can anybody help?

Thank you!

To remove the first pair of parenthesis you could try:
$regexp('Song Title (feat. Artist) (Extended Version)','(.*?) \((.*?)\)(.*)','$1 $2$3')

Hi there,

Thank you for your reply.

It's not necessary the first parenthesis I want to get rid of, it's just the ones around (feat. artist). I have some tracks where that is indeed the first set, but I also have tracks where it is the second; "Song Title (Radio Edit) (feat. Artist)"

I need to adapt the RegEx to take out the first "(" that precedes "feat." and then the next ")" that follows and I am not sure how I achieve this.

Again, thank you in advance

Try:
$regexp('Song Title (Extended Version) (feat. Artist)','(.*?) \((feat.*?)\)(\s*.*)','$1 $2$3')
Works also for
$regexp('Song Title (feat. Artist) (Extended Version)','(.*?) \((feat.*?)\)(\s*.*)','$1 $2$3')
and
$regexp('Song Title (Extended Version)','(.*?) \((feat.*?)\)(\s*.*)','$1 $2$3')
and
$regexp('Song Title (feat. Artist)','(.*?) \((feat.*?)\)(\s*.*)','$1 $2$3')

Top man!

$regexp(%TITLE%,'(.*?) \((feat.*?)\)(\s*.*)','$1 $2$3')

worked perfectly!

Thank you!