# Special Caracters \[ \]

**URL:** https://community.mp3tag.de/t/special-caracters/64582
**Category:** Support
**Created:** [May 2, 2024, 3:37pm UTC](https://community.mp3tag.de/t/special-caracters/64582 "2024-05-02T15:37:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Sikky](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/898d66/32.png) [@Sikky](https://community.mp3tag.de/u/Sikky)
#### Post date: [May 2, 2024, 3:37pm UTC](https://community.mp3tag.de/t/special-caracters/64582/1 "2024-05-02T15:37:59Z")

</div>

Continuing the discussion from [Adding Bpm Right After "- "caracter](https://community.mp3tag.de/t/adding-bpm-right-after-caracter/64580/14):

I was wondering why these caracters is not showing i was reading it but its not very clear to me can someone explain in simpler words why my script is not adding them in the final result  
Heres the script : `$regexp(%_directory%,(.*?) - (.*),$1 - %bpm%bpm %dummy%$2) [%PUBLISHER%]`

 ![Screen Shot 2024-05-02 at 11.37.30 AM](https://community.mp3tag.de/uploads/default/original/3X/e/e/eea611c7e3e89644a13f056d2ece7688e515e383.png)  
 ![Screen Shot 2024-05-02 at 11.37.13 AM](https://community.mp3tag.de/uploads/default/original/3X/d/5/d5d003d38995447dd3f8770a4fcd1d327568ba59.png)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [May 2, 2024, 3:47pm UTC](https://community.mp3tag.de/t/special-caracters/64582/2 "2024-05-02T15:47:47Z")

</div>

The square brackets work as some kind of "if" condition.  
See the documentation:

> **[Format Strings and Placeholders – Mp3tag Documentation](https://docs.mp3tag.de/format/#characters-with-special-functionality)**
>
> Documentation on format strings and placeholders to describe the structure of file names and imported data. Mp3tag is the universal Tag Editor.

If you want to use `[` then use them enclosed in apostrohes: `'['` -\> `'['%perfomer%']'`

Another question: which function is %dummy% supposed to have in your format string?

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [May 2, 2024, 4:12pm UTC](https://community.mp3tag.de/t/special-caracters/64582/3 "2024-05-02T16:12:19Z")

</div>

> [@Sikky](#):
>
> explain in simpler words

You reorder the content of the first capturing group from the regular expression like this:  
$1  
followed by a space and a hyphen and a space  
followed by the content of your %bpm% tag  
followed by the text `bpm` and a space  
followed by the content of %dummy% (_whatever this should be..._)  
and then you add the content of the second capturing group  
$2  
then you append the content of your %PUBLISHER% tag but only if there is a content available. If there is no content in %PUBLISHER% there will be nothing added.

> [@Sikky](#):
>
> script is not adding

What exactly is your script not adding at what position?

---

<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: [June 1, 2024, 4:12pm UTC](https://community.mp3tag.de/t/special-caracters/64582/4 "2024-06-01T16:12:24Z")

</div>

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