# How to replace Round Brackets?

**URL:** https://community.mp3tag.de/t/how-to-replace-round-brackets/3393
**Category:** Support
**Created:** [June 2, 2006, 12:06pm UTC](https://community.mp3tag.de/t/how-to-replace-round-brackets/3393 "2006-06-02T12:06:25Z")
**Posts on this page:** 8
**Page:** 1

<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: [June 2, 2006, 12:06pm UTC](https://community.mp3tag.de/t/how-to-replace-round-brackets/3393/1 "2006-06-02T12:06:25Z")

</div>

The need is to create a proper filename from %TITLE% tag to store the file up to a homepage server that only supports a filesystem charset limited to [0-9a-zA-Z\_#~].

In order to do this I've created an action rule for replacing the round brackets "(", ")" by an alllowed char, tilde sign "~" or hash sign "#", but did not have any success.  
Any idea around in the world how to do?

DD.20060602.1602

---

<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: [June 3, 2006, 5:55pm UTC](https://community.mp3tag.de/t/how-to-replace-round-brackets/3393/2 "2006-06-03T17:55:35Z")

</div>

Hello Detlev,

this should work using a normal Replace action. If you're using regular expressions, you have to mask the brackets using the backslash character like ( and )

Best regards,  
Florian

---

<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: [June 4, 2006, 2:49am UTC](https://community.mp3tag.de/t/how-to-replace-round-brackets/3393/3 "2006-06-04T02:49:35Z")

</div>

Florian  
ah, yes, I did so, but it didn't work ... until now.  
My bad, there was a series of rules following and one rule has deleted the replacement done before. Therefore I thought it might not work at all. Sorry to bother you.  
Best regards  
Detlev  
DD.20060604.0647

---

<div class="post-metadata">

### Author: ![Emufan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/94ad74/32.png) [@Emufan](https://community.mp3tag.de/u/Emufan)
#### Post date: [August 17, 2009, 1:11pm UTC](https://community.mp3tag.de/t/how-to-replace-round-brackets/3393/4 "2009-08-17T13:11:57Z")

</div>

If want to replace ( with [ in the title, bute every time I get an formating error:

$replace(%title%,(,[)  
$replace(%title%,(,[)  
$replace(%title%,(,[)  
$replace(%title%,"(","[")

nothing works. Where is my error? ![:huh:](https://community.mp3tag.de/uploads/default/original/1X/f15ee73c0fd9ec3b0db7481f0558638f8ee224ce.gif ":huh:")

---

<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: [August 17, 2009, 2:10pm UTC](https://community.mp3tag.de/t/how-to-replace-round-brackets/3393/5 "2009-08-17T14:10:08Z")

</div>

Your error is, that you might have forgotten Mp3tag basic scripting rules.  
This should work: $replace(%title%,'(','[',')',']')

DD.20090817.1810.CEST

---

<div class="post-metadata">

### Author: ![Emufan](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/94ad74/32.png) [@Emufan](https://community.mp3tag.de/u/Emufan)
#### Post date: [August 18, 2009, 6:52am UTC](https://community.mp3tag.de/t/how-to-replace-round-brackets/3393/6 "2009-08-18T06:52:20Z")

</div>

> [@DetlevD](#):
>
> Your error is, that you might have forgotten Mp3tag basic scripting rules.  
> This should work: $replace(%title%,'(','[',')',']')

Yes, this works. Before I replaced blanlblank to blank, without these ' and only read abot regex masking for ( and [. Where can I find the Mp3Tag basic scriptiong rules, where I can read when I have to use ' and when it is possible without '?

---

<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: [August 18, 2009, 8:55am UTC](https://community.mp3tag.de/t/how-to-replace-round-brackets/3393/7 "2009-08-18T08:55:20Z")

</div>

> [@Emufan](#):
>
> ... Where can I find the Mp3Tag basic scriptiong rules ...

[https://docs.mp3tag.de/scripting](https://docs.mp3tag.de/scripting)

DD.20090818.1255.CEST

---

<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/how-to-replace-round-brackets/3393/8 "2026-02-09T12:19:46Z")

</div>


