# "$replace" Format String | Mp3tag v2.77

**URL:** <https://community.mp3tag.de/t/replace-format-string-mp3tag-v2-77/17900>\
**Category:** Support\
**Created:** [April 29, 2016, 12:26pm UTC](https://community.mp3tag.de/t/replace-format-string-mp3tag-v2-77/17900 "2016-04-29T12:26:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ragtag](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ragtag/32/13146_2.png) [@ragtag](https://community.mp3tag.de/u/ragtag)\
**Post date:** [April 29, 2016, 12:26pm UTC](https://community.mp3tag.de/t/replace-format-string-mp3tag-v2-77/17900/1 "2016-04-29T12:26:54Z")

</div>

Hi everyone

I use the $replace format string regularly to alter characters of choice when renaming files or setting up actions. For example, thsi is one where I change the regular brackets into curly brackets:

$replace(%discnumber%-%track%. %title%,(,{,),},)

I have also tried variations of the foregoing string, such as:

$replace(%discnumber%-%track%. %title%,(,{,),})

Since version 2.77, the format string does not achieve the desired results at all, and I hope someone can pinpoint my mistake. I would also like to know if the following format string may be used to achieve the same reult as my original above:

$replace(%discnumber%-%track%. %title%,(,,),{,,},) ([based on this one](https://community.mp3tag.de/t/17869/1))

or

$replace(%discnumber%-%track%. %title%,(,,),{,,})

Thanks.

---

<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 29, 2016, 1:17pm UTC](https://community.mp3tag.de/t/replace-format-string-mp3tag-v2-77/17900/2 "2016-04-29T13:17:30Z")

</div>

> [@ragtag](#):
>
> Hi everyone I use the $replace format string regularly to alter characters of choice when renaming files or setting up actions. For example, thsi is one where I change the regular brackets into curly brackets: $replace(%discnumber%-%track%. %title%,(,{,),},) ...

**This is bad syntax because of the trailing empty parameter ... $replace(%DISCNUMBER%'-'%TRACK%'. '%TITLE%,'(','{',')','}',) This is good ... $replace(%DISCNUMBER%'-'%TRACK%'. '%TITLE%,'(','{',')','}')**

DD.20160429.1717.CEST

---

<div class="post-metadata">

**Author:** ![ragtag](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ragtag/32/13146_2.png) [@ragtag](https://community.mp3tag.de/u/ragtag)\
**Post date:** [April 30, 2016, 2:15pm UTC](https://community.mp3tag.de/t/replace-format-string-mp3tag-v2-77/17900/3 "2016-04-30T14:15:07Z")

</div>

> [@DetlevD](#):
>
> **This is bad syntax because of the trailing empty parameter ... $replace(%DISCNUMBER%'-'%TRACK%'. '%TITLE%,'(','{',')','}',) This is good ... $replace(%DISCNUMBER%'-'%TRACK%'. '%TITLE%,'(','{',')','}')**
> 
> DD.20160429.1717.CEST

@DetlevD

Thank you very much, it worked perfectly. The thing I do not undertand though, is why the hyphens are used, because previously my $replace-syntaxes worked well without them.

---

<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:26pm UTC](https://community.mp3tag.de/t/replace-format-string-mp3tag-v2-77/17900/4 "2026-02-09T12:26:13Z")

</div>

Closed on February 9, 2026, 12:26pm UTC


