1 (edited by wkjii 2012-09-11 06:19:49)

Topic: Remove Backslashes

I couldn't find this anywhere.  I finally figured it out by experimentation and thought I'd share it.

Excerpt from my expression:

%UAt("\/","-")

It seems that you must use an escaped forward slash to represent a backslash.

This snippet of code takes:  song title \ alt title
and outputs:  Song Title - Alt Title

Re: Remove Backslashes

Hello and welcome to this forum,

Thanks a lot for sharing your tips.

Just a remark : isn't there a typo in your snippet ?
shouldn't it be : %UAt("\\","-")
instead of : %UAt("\/","-")

If not, what is the version of Siren you are using and on which operating system ?

Normally, in this case, "/" shouldn't have to be escaped.

Remi