I have the following problem:
I have a script that executes an AJAX request to a server, the server returns C:\\backup\\ in the preview. However, the r
C:\\backup\\
This should do it: "C:\\backup\\".replace(/\\\\/g, '\\')
"C:\\backup\\".replace(/\\\\/g, '\\')
In the regular expression, a single \ must be escaped to \\, and in the replacement \ also.
\
\\