replacing slash with backslash
Good morning,
I can't find the way to replace, in a text string, the "/" char with the "\"
char.
I know that exists an instruction called replace that has the following
sintax :
mystring = mystring.replace(/oldtext/flags , "newtext")
the problem is that my oldtext is just the slash ( / ) character!!!
Anyone can tell me which is the correct sintax for my case ???
Thanks a lot.
Fabrizio
|