# regexp trouble

**URL:** https://community.mp3tag.de/t/regexp-trouble/7097
**Category:** Export
**Created:** [July 30, 2008, 11:47pm UTC](https://community.mp3tag.de/t/regexp-trouble/7097 "2008-07-30T23:47:28Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jfamiot](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/aca169/32.png) [@jfamiot](https://community.mp3tag.de/u/jfamiot)
#### Post date: [July 30, 2008, 11:47pm UTC](https://community.mp3tag.de/t/regexp-trouble/7097/1 "2008-07-30T23:47:28Z")

</div>

Hello all!

First post here.

I am trying to generate a latex template (tex) that list all artist and album by style with each album cover in a nice PDF file. A catalogue of Album.

My problem is that %\_folderpath% return a path such as:  
C:\rips\African\Ali Farka Toure - Ali Farka Toure (1989)  
Which would normally be perfect, but in order for TEX to do it's work, I need to replace all \ by /  
(Because in tex, a \ indicate a command, so it complain that \rips and \african are )

So, I am trying without success to do something like:  
{$regexp(%\_folderpath%,,/) Where I simply want to replace all \ by / in the folderpath...

What is the regexp to do that?

Thanks!!

And when I am done, I will leave my code in the example section if anyone is interested.

===\\\\\\\\\\=====

Oh Joy! 😉

I found it myself...

$regexp(%\_folderpath%,\\,/)

I needed a double . Probably because \ is a special character.

Thanks anyway.

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [July 31, 2008, 6:16am UTC](https://community.mp3tag.de/t/regexp-trouble/7097/2 "2008-07-31T06:16:29Z")

</div>

> [@jfamiot](#):
>
> Probably because \ is a special character.

Exactly! 🙂
