# Problem with Brackets/Parentheses

**URL:** https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385
**Category:** Support
**Created:** [October 11, 2004, 6:38pm UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385 "2004-10-11T18:38:14Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Dr\_Gonzo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ba9def/32.png) [@Dr\_Gonzo](https://community.mp3tag.de/u/Dr_Gonzo)
#### Post date: [October 11, 2004, 6:38pm UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385/1 "2004-10-11T18:38:14Z")

</div>

Hi, good proggy this one.

I'm only having I probelm which is manifesting itself in a few ways. Could someone tell me how to do the following:

1. Rename: _Remix_ to (Remix)

and

1. Rename: (Remix( to (Remix)

and

1. Replace all of the ( characters at the end of a filename with nothing

I don't see how the proggy can distinguish between the 1st and 2nd occurance of the brackets???

Thanks in advance.

---

<div class="post-metadata">

### Author: ![Dr\_Gonzo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ba9def/32.png) [@Dr\_Gonzo](https://community.mp3tag.de/u/Dr_Gonzo)
#### Post date: [October 12, 2004, 4:39pm UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385/2 "2004-10-12T16:39:50Z")

</div>

hmmm, have I asked a question that can not be answered ... 😳

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [October 13, 2004, 7:54am UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385/3 "2004-10-13T07:54:07Z")

</div>

Please be patient. We don't do support 24/7 🙂

I think your question can be answered easily, but it's a little bit vague, so I'll ask you the details:

I'm assuming that _Remix_ can be any text, not just _Remix_? Do you want to replace this from the filename, or from a tag field. Is there other text in this field, besides _Remix_ or _(Remix(_?

Regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Dr\_Gonzo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ba9def/32.png) [@Dr\_Gonzo](https://community.mp3tag.de/u/Dr_Gonzo)
#### Post date: [October 13, 2004, 10:01am UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385/4 "2004-10-13T10:01:08Z")

</div>

hehe, sorry for my impatience Florian 😉

Yes, to clarify:

Remix can be any word (and would most likely be accompanied by another word) and in fact, it could be be any words in the brackets [I just chose Remix as I thought I could adapt the solution accordingly]. But its good that this is clarified.

Filename and Tag field please (am I correct in thinking if the expression is \_ALL then this will replace in any filenames and tags where the character is found and for others it will just ignore it?).

And yes, there will be other text in the filename an example being: Title - Artist (ABC Remix(.mp3

Thanks for your help Florian, it is much appreciated.

> [@](#):
>
> Please be patient. We don't do support 24/7 🙂
> 
> I think your question can be answered easily, but it's a little bit vague, so I'll ask you the details:
> 
> I'm assuming that _Remix_ can be any text, not just _Remix_? Do you want to replace this from the filename, or from a tag field. Is there other text in this field, besides _Remix_ or _(Remix(_?
> 
> Regards,  
> ~ Florian
> 
> \<{POST\_SNAPBACK}\>

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [October 13, 2004, 6:15pm UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385/5 "2004-10-13T18:15:10Z")

</div>

Okay, please create a new [action group](http://forums.mp3tag.de/index.php?act=ST&f=12&t=980&st=0#entry4106) with these three Replace with regular expression actions:

- 1.  
Field: _ALL  
Regular Expression: (.\*?)_(._?)\_(._)  
Replace matches with: $1($2)$3
- 2.  
Field: \_ALL  
Regular Expression: (._?)((._?)((._)  
Replace matches with: $1($2)$3_
- 3.  
Field: \_ALL  
Regular Expression: (.?)(.(.\*)  
Replace matches with: $1.$2

Finally apply this set of actions to your files.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![Dr\_Gonzo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ba9def/32.png) [@Dr\_Gonzo](https://community.mp3tag.de/u/Dr_Gonzo)
#### Post date: [October 13, 2004, 8:11pm UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385/6 "2004-10-13T20:11:13Z")

</div>

OK I will try this when I get to my home pc and report back. Thanks.

> [@](#):
>
> Okay, please create a new [action group](http://forums.mp3tag.de/index.php?act=ST&f=12&t=980&st=0#entry4106) with these three Replace with regular expression actions:
> 
> - 1.  
> Field: _ALL  
> Regular Expression: (.\*?)_(._?)\_(._)  
> Replace matches with: $1($2)$3
> 
> - 2. Field: \_ALL Regular Expression: (.\*?)\((.\*?)\((.\*) Replace matches with: $1\($2\)$3
> - 3. Field: \_ALL Regular Expression: (.\*?)\(\.(.\*) Replace matches with: $1.$2
> 
> Finally apply this set of actions to your files.
> 
> Best regards,  
> ~ Florian
> 
> \<{POST\_SNAPBACK}\>

---

<div class="post-metadata">

### Author: ![Dr\_Gonzo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/ba9def/32.png) [@Dr\_Gonzo](https://community.mp3tag.de/u/Dr_Gonzo)
#### Post date: [October 14, 2004, 6:22pm UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385/7 "2004-10-14T18:22:59Z")

</div>

OK, you're officially a genius. It works. 😉

---

<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:19pm UTC](https://community.mp3tag.de/t/problem-with-brackets-parentheses/1385/8 "2026-02-09T12:19:15Z")

</div>


