# Tag-\>Filename character substitution

**URL:** https://community.mp3tag.de/t/tag-filename-character-substitution/8613
**Category:** Support
**Created:** [July 14, 2009, 10:16pm UTC](https://community.mp3tag.de/t/tag-filename-character-substitution/8613 "2009-07-14T22:16:15Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [July 15, 2009, 12:48pm UTC](https://community.mp3tag.de/t/tag-filename-character-substitution/8613/2 "2009-07-15T12:48:37Z")

</div>

You could use the script command $validate.

Just have a look in the helpfile 'main\_scripting.html' and the section:

> [@](#):
>
> Ungültige Zeichen aus Dateinamen und -pfaden entfernen
> 
> Befehl: $validate(filename, to)
> 
> Beispiel: $validate(%artist% - %album% - %track% - %title%,-)  
> Dieses Beispiel ersetzt alle für Dateinamen ungültigen Zeichen (/?\*"\<\>|:slight\_smile: in der übergebenen Zeichenkette durch Bindestriche.

(Sorry, I use the german version of Mp3tag.)  
And maybe this could help as well:  
[/t/8205/1](https://community.mp3tag.de/t/8205/1)

---

_[View the full topic](https://community.mp3tag.de/t/tag-filename-character-substitution/8613)._
