I am trying to replace the backslash (escape) character in a Javascript string literal.
I need to replace it with a double backslash so that I can then do a redirec
You should be replacing with "\\\\" because "\\" is escaping into a single \ thus no change.