# How can I replace characters in the file name

**URL:** https://community.mp3tag.de/t/how-can-i-replace-characters-in-the-file-name/12838
**Category:** Support
**Created:** [December 19, 2011, 10:38am UTC](https://community.mp3tag.de/t/how-can-i-replace-characters-in-the-file-name/12838 "2011-12-19T10:38:44Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kilohurtz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/85f322/32.png) [@kilohurtz](https://community.mp3tag.de/u/kilohurtz)
#### Post date: [December 19, 2011, 10:38am UTC](https://community.mp3tag.de/t/how-can-i-replace-characters-in-the-file-name/12838/1 "2011-12-19T10:38:44Z")

</div>

Hello Friends

Does anyone know how I can achieve the following

In the filename box I want to replace the following

"character\_character to " " without the "  
example **taylor\_dayne** to _ **taylor dayne** _

"character-character" to " " without the "  
example **tell-it-to-my-heart** to _ **tell it to my heart** _

"character\_-_character" to " " without the "  
example **atfc** _-\_tell u to _ **atfc - tell u** _

I would be very much abliged if someone could help me out

Merry Christmas

---

<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: [December 19, 2011, 10:53am UTC](https://community.mp3tag.de/t/how-can-i-replace-characters-in-the-file-name/12838/2 "2011-12-19T10:53:46Z")

</div>

> [@kilohurtz](#):
>
> Hello Friends
> 
> Does anyone know how I can achieve the following

DId you have a look at the FAQs, [/t/967/1](https://community.mp3tag.de/t/967/1) especially?

The example quotes "xyz" which should be the underscore in your example. And the single blank as replace string.

---

<div class="post-metadata">

### Author: ![kilohurtz](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/k/85f322/32.png) [@kilohurtz](https://community.mp3tag.de/u/kilohurtz)
#### Post date: [December 19, 2011, 12:07pm UTC](https://community.mp3tag.de/t/how-can-i-replace-characters-in-the-file-name/12838/3 "2011-12-19T12:07:36Z")

</div>

> [@ohrenkino](#):
>
> DId you have a look at the FAQs, [/t/967/1](https://community.mp3tag.de/t/967/1) especially?
> 
> The example quotes "xyz" which should be the underscore in your example. And the single blank as replace string.

Thanks for the tip the only one I cant find is

"character-character" to "character - character" without the "  
example **atfc-tell-u** to _ **atfc - tell u** _

I dont want to above to affect any correct filesnames like artists - title only the ones that have artist-title

Thanks

---

<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: [December 19, 2011, 12:35pm UTC](https://community.mp3tag.de/t/how-can-i-replace-characters-in-the-file-name/12838/4 "2011-12-19T12:35:37Z")

</div>

> [@kilohurtz](#):
>
> Thanks for the tip the only one I cant find is
> 
> "character-character" to "character - character" without the "  
> example **atfc-tell-u** to _ **atfc - tell u** _
> 
> I dont want to above to affect any correct filesnames like artists - title only the ones that have artist-title
> 
> Thanks

many routes lead to rome ...  
As you want to have all hyphens with leading and trailing blanks I would do it in two steps:  
replace all hyphens with blank-hyphen-blank  
and as this will lead to double-blanks the next step would naturally be:  
replace all double-blanks with a single blank.

This saves you from fiddling about with elaborate filters and regular expressions.

---

<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:23pm UTC](https://community.mp3tag.de/t/how-can-i-replace-characters-in-the-file-name/12838/5 "2026-02-09T12:23:31Z")

</div>


