# Delete (brackets) inside TAG

**URL:** <https://community.mp3tag.de/t/delete-brackets-inside-tag/41470>\
**Category:** Support\
**Created:** [April 18, 2018, 1:45pm UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470 "2018-04-18T13:45:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![HankD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/hankd/32/5130_2.png) [@HankD](https://community.mp3tag.de/u/HankD)\
**Post date:** [April 18, 2018, 1:45pm UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470/1 "2018-04-18T13:45:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [April 18, 2018, 3:48pm UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470/2 "2018-04-18T15:48:29Z")

</div>

do you really mean

> [@HankD](#):
>
> ALBUMARTISTS

because the standard field is called ALBUMARTIST.

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

---

<div class="post-metadata">

**Author:** ![HankD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/hankd/32/5130_2.png) [@HankD](https://community.mp3tag.de/u/HankD)\
**Post date:** [April 18, 2018, 4:45pm UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470/3 "2018-04-18T16:45:24Z")

</div>

Thanks, yes of course ALBUMARTIST 🙂

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)

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [April 18, 2018, 5:00pm UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470/4 "2018-04-18T17:00:28Z")

</div>

> [@HankD](#):
>
> this formula deletes everything after the first bracket

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)

> [@HankD](#):
>
> 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)

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

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [April 20, 2018, 7:50am UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470/5 "2018-04-20T07:50:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)\
**Post date:** [April 20, 2018, 8:07am UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470/6 "2018-04-20T08:07:40Z")

</div>

Both cases combined ...

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

DD.20180420.1007.CEST

---

<div class="post-metadata">

**Author:** ![HankD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/hankd/32/5130_2.png) [@HankD](https://community.mp3tag.de/u/HankD)\
**Post date:** [April 29, 2018, 3:57pm UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470/7 "2018-04-29T15:57:00Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)\
**Post date:** [February 9, 2026, 12:27pm UTC](https://community.mp3tag.de/t/delete-brackets-inside-tag/41470/8 "2026-02-09T12:27:23Z")

</div>


