# Action to replace "\[ \]" by "( )"

**URL:** https://community.mp3tag.de/t/action-to-replace-by/12693
**Category:** Support
**Created:** [November 15, 2011, 8:45am UTC](https://community.mp3tag.de/t/action-to-replace-by/12693 "2011-11-15T08:45:46Z")
**Posts on this page:** 1
**Showing post:** 4

<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: [November 15, 2011, 1:53pm UTC](https://community.mp3tag.de/t/action-to-replace-by/12693/4 "2011-11-15T13:53:41Z")

</div>

> [@shadow66](#):
>
> Which one? I see so many.

Use the offered help right there where the link points to ...  
"How do I replace the string "xyz" in tag-fields or filenames?"  
[Actions](https://community.mp3tag.de/t/967/4)  
... and follow the instructions.

Example ...

**$replace('square brackets [to] round brackets','[','(',']',')')**

... will give ...  
'square brackets (to) round brackets'

DD.20111115.1840.CET

Edit.  
Example for the tag-field TITLE ...  
Action: Format value  
Field: TITLE  
Formatstring: **$replace(%TITLE%,'[','(',']',')')**

Example for the pseudo tag-field \_FILENAME ...  
Action: Format value  
Field: \_FILENAME  
Formatstring: **$replace(%\_FILENAME%,'[','(',']',')')**

You can also use the action "Replace" to do so, but this will need two steps, collected in one group.

Begin Action Group **Test\_2011#20111116.Replace** 

Action #1  
_Actiontype 2:_ **Replace**  
_Field \_\_\_\_\_\_:_ **TITLE**  
_Original \_\_\_:_ **[**  
_Replace with:_ **(**

 [\_] Only as whole word [\_] Case sensitive comparison 

Action #2  
_Actiontype 2:_ **Replace**  
_Field \_\_\_\_\_\_:_ **TITLE**  
_Original \_\_\_:_ **]**  
_Replace with:_ **)**

 [\_] Only as whole word [\_] Case sensitive comparison 

End Action Group **Test\_2011#20111116.Replace** (2 Actions)

 

If you need to know how to create a new action, then see also ...  
[Actions](https://community.mp3tag.de/t/967/2)

 

DD20111116.0740.CET

---

_[View the full topic](https://community.mp3tag.de/t/action-to-replace-by/12693)._
