# Brackets HELP

**URL:** https://community.mp3tag.de/t/brackets-help/12867
**Category:** Support
**Created:** [December 26, 2011, 12:25pm UTC](https://community.mp3tag.de/t/brackets-help/12867 "2011-12-26T12:25:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Juice25](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/73ab20/32.png) [@Juice25](https://community.mp3tag.de/u/Juice25)
#### Post date: [December 26, 2011, 12:25pm UTC](https://community.mp3tag.de/t/brackets-help/12867/1 "2011-12-26T12:25:31Z")

</div>

I have a bunch of music MP3 files in a folder. Some of them have their _ **title** _ tag set as, for example:  
**Back Up (Feat. xx) (Album Version)**

I want to create an action that will define, if title tag has two pairs of round brackets "()", the second pair should be replaced with square ones "[]"

**Back Up (Feat. xx) [Album Version]**

Is it possible to create such action (expression) ?

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [December 26, 2011, 1:39pm UTC](https://community.mp3tag.de/t/brackets-help/12867/2 "2011-12-26T13:39:46Z")

</div>

create an action for regular exp.  
Reg exp: `(.+\([^\(]+\)[^\)]+)\(([^\(]+)\)$`  
replace with: `$1 [$2]`

im on my phone so test this on a single file first. Any problems please report back.

---

<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: [December 26, 2011, 1:44pm UTC](https://community.mp3tag.de/t/brackets-help/12867/3 "2011-12-26T13:44:11Z")

</div>

> [@Juice25](#):
>
> ... I want to create an action that will define, if title tag has two pairs of round brackets "()", the second pair should be replaced with square ones "" ...

Action: Format value  
Field: TITLE  
Formatstring: `$regexp(%TITLE%,'^([^(]+?)\s\(([^(]+?)\)\s\(([^(]+?)\)$','$1 ($2) [$3]')`

From:  
AAA (BBB) (CCC)  
To:  
AAA (BBB) [CCC]

Filter:  
TITLE MATCHES `"^([^(]+?)\s\(([^(]+?)\)\s\(([^(]+?)\)$`

Other approach:

Begin Action Group **Test\_2011#20111226.Test.Round.Square.Brackets** 

Action #1  
_Actiontype 7:_ **Import tag fields (guess values)**  
_Source format \_\_:_ **%TITLE%**  
_Guessing pattern:_ **%TEMP1%÷(%TEMP2%)÷(%TEMP3%)**

 

Action #2  
_Actiontype 5:_ **Format value**  
_Field \_\_\_\_\_\_:_ **TITLE**  
_Formatstring:_ **%TEMP1%'÷('%TEMP2%')÷['%TEMP3%']'**

 

Action #3  
_Actiontype 9:_ **Remove fields**  
_Fields to remove (semicolon separated):_ **TEMP1;TEMP2;TEMP3**

 

_Note: Replace each special ÷ character with one space character._  
End Action Group **Test\_2011#20111226.Test.Round.Square.Brackets** (3 Actions)

 

DD.20111226.1600.CET

---

<div class="post-metadata">

### Author: ![Juice25](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/73ab20/32.png) [@Juice25](https://community.mp3tag.de/u/Juice25)
#### Post date: [December 26, 2011, 4:28pm UTC](https://community.mp3tag.de/t/brackets-help/12867/4 "2011-12-26T16:28:45Z")

</div>

Thanks a lot for your help, guys! This is exactly what I wanted to see 😃

---

<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: [August 20, 2025, 7:12am UTC](https://community.mp3tag.de/t/brackets-help/12867/6 "2025-08-20T07:12:05Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
