I have a lot of jazz recordings and use online databases to fill out the artist field for recordings. Here is an example of a recording artist field:
Donald Byrd (tp) Hank Mobley (ts) Duke Pearson (p) Doug Watkins (b) Lex Humphries (d)
I would like an automated way to remove each of the instruments in parentheses since they don't really belong in the artist field. For example I would like to replace (tp) with a comma and any item in parentheses with a comma.
An action of the type: Replace with regular expression containing:
Field: ARTIST
Regular expression: \(.*?\)
Replace matches with: ,
Would do the trick. However that would replace ANYTHING in braces with a , which might be unwanted.
If you know exactly which instruments are possible, a more specific way would be to use a regex like this:
\((?:tp|ts|p|b|d)\)
Which matches the instruments in braces and nothing else:
Are you sure you haven't forgotten the LEADING space in the regular expression? \(.*?\)
↑
It is necessary in both variants, also in \((?:tp|ts|p|b|d)\)
↑