# "Filename - Tag" ICON

**URL:** https://community.mp3tag.de/t/filename-tag-icon/16549
**Category:** Support
**Created:** [January 31, 2015, 5:41pm UTC](https://community.mp3tag.de/t/filename-tag-icon/16549 "2015-01-31T17:41:52Z")
**Posts on this page:** 1
**Showing post:** 8

<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: [February 2, 2015, 6:27pm UTC](https://community.mp3tag.de/t/filename-tag-icon/16549/8 "2015-02-02T18:27:20Z")

</div>

> [@zerow](#):
>
> Hello I would like to now is there is a way to use the "Filename - Tag", so it would automatically change all "\_" characters from filename into "/" characters in the tag "title"?

The purpose of the converter "Filename - Tag" is ... to split the file name into parts using a mask, ...  
and put the parts automagically into the corresponding tag-fields, which are defined by the given mask format string.

If you want to replace one or more characters in a string, ...  
then use the action "Replace" resp. the function $replace(), ...  
or use the advanced action "Replace using Regular Expression" resp. the function $regexp().

The functionality of the interactive converters can be replaced by action resp. action groups.

> [@zerow](#):
>
> I would also like to use the icon "Tag - Filename" other way around: that it would automatically change all "/" characters from "title" tag into "\_" characters in the filename?

With the help of the converter "Tag - Filename" it is possible to rename the selected files, based on the embedded tag information.

If you want to replace one or more characters in a string, ...  
then use the action "Replace" resp. the function $replace(), ...  
or use the advanced action "Replace using Regular Expression" resp. the function $regexp().

Example using action "Format value" and function $replace() ...

**\_FILENAME \<== $replace(%ARTIST%' - '%ALBUM%' - '$num(%TRACK%,2)' - '%TITLE%,'/','\_')**

Example for bijective mapping ...

**\_FILENAME \<== $replace(%TAGFIELD%,'/','\_',':.','...',':','..') TAGFIELD \<== $replace(%\_filename%,'\_','/','...',':.','..',':')**

DD.20150202.2027.CET, DD.20150203.1759.CET

---

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