# String conversion: How to replace backslash with forward slash?

**URL:** <https://community.mp3tag.de/t/string-conversion-how-to-replace-backslash-with-forward-slash/47105>\
**Category:** Support\
**Created:** [November 21, 2019, 1:22pm UTC](https://community.mp3tag.de/t/string-conversion-how-to-replace-backslash-with-forward-slash/47105 "2019-11-21T13:22:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lestrad](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lestrad/32/347_2.png) [@Lestrad](https://community.mp3tag.de/u/Lestrad)\
**Post date:** [November 21, 2019, 1:22pm UTC](https://community.mp3tag.de/t/string-conversion-how-to-replace-backslash-with-forward-slash/47105/1 "2019-11-21T13:22:01Z")

</div>

Hello. I've tried a number of solutions I found here ("[Search results for 'forward slash' - Mp3tag Community](https://community.mp3tag.de/search?q=forward%20slash)") but can't get any of them to work.

I'm trying to replace "\" with "/" in a folderpath. I started with

> ($replace(%\_folderpath%,\,/)

but that expression replaces "\" with nothing.

I've tried various ways of escaping the "\" and "/" but nothing works. I can't get the $regex solutions I've seen to work either. Can anyone help?

TIA  
Les  
PS Replacing "\" with "\\" as I need to do for this post to read correctly doesn't work either...

---

<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:** [November 21, 2019, 1:57pm UTC](https://community.mp3tag.de/t/string-conversion-how-to-replace-backslash-with-forward-slash/47105/2 "2019-11-21T13:57:59Z")

</div>

the forward slash is an invalid character for a filename or path.

---

<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:28pm UTC](https://community.mp3tag.de/t/string-conversion-how-to-replace-backslash-with-forward-slash/47105/3 "2026-02-09T12:28:20Z")

</div>


