Delete (brackets) inside TAG

Looked around but can't find the exact solution to this.

In my tag ALBUMARTISTS I have info like this:

Glenn Spearman - tenor saxophone, Marco Eneidi - alto saxophone, J.R. Routhier - electric guitar (1,3,5,6,8)
Lisle Ellis - double bass (1,2,3,6,7,8)
Raphe Malik - trumpet (1,3,6,8)
Donald Robinson - drums (1,2,3,5,6,7,8)
Paul Plimley - piano (2,7)
Shafqat Ali Khan - voice (4)

I want to delete all brackets and all info inside the brackets.

Best wishes /Hank

do you really mean

because the standard field is called ALBUMARTIST.

For your problem:
Try an action of the type "Guess value" for
Source: %albumartist%
Pattern: %albumartist% (%dummy%

1 Like

Thanks, yes of course ALBUMARTIST :slight_smile:

I tried this but I cant get it to grab all the brackets, and this formula deletes everything after the first bracket , there are more like this

Double Bass – Lisle Ellis (tracks: 1 to 3, 6 to 8), Drums – Donald Robinson (2) (tracks: 1 to 3, 5 to 8), Electric Guitar – J.R. Routhier* (tracks: 1, 3, 5, 6, 8), Engineer – Oliver DeCicco* (tracks: 1 to 3, 6 to 8)

yes, your first example looked as though each set had only one pair of brackets.

Then it is a different thing.
Try an action of the type "Replace with regular expression" for ALBUMARTIST
Search string: \(tracks.*?\)
Replace string:
(leave empty)

becomes
Double Bass – Lisle Ellis , Drums – Donald Robinson (2) , Electric Guitar – J.R. Routhier* , Engineer – Oliver DeCicco*

Apply Action "Format value" or Convert "Tag - Tag"
ALBUMARTIST <== $regexp(%ALBUMARTIST%,'\s+\((\d+,?)+\)',)

Example:
From:
Glenn Spearman - tenor saxophone, Marco Eneidi - alto saxophone, J.R. Routhier - electric guitar (1,3,5,6,8)
Lisle Ellis - double bass (1,2,3,6,7,8)
Raphe Malik - trumpet (1,3,6,8)
Donald Robinson - drums (1,2,3,5,6,7,8)
Paul Plimley - piano (2,7)
Shafqat Ali Khan - voice (4)

To:
Glenn Spearman - tenor saxophone, Marco Eneidi - alto saxophone, J.R. Routhier - electric guitar
Lisle Ellis - double bass
Raphe Malik - trumpet
Donald Robinson - drums
Paul Plimley - piano
Shafqat Ali Khan - voice

DD.20180420.0950.CEST

1 Like

Both cases combined ...

Apply Action "Format value" or Convert "Tag - Tag"
ALBUMARTIST <== $regexp(%ALBUMARTIST%,'\s+\(((\d+,?)|(tracks:.*?))+\)',)

DD.20180420.1007.CEST

THANK YOU. This was perfect. Thank you both of you