I have a string like this coming from the server and its not working due to four backslashes. if i remove four with two its working.
URL_https~~\\\\fbcdn-sphotos-f-a.akamaihd.net\
May I know how to replace four backslashes with two as below
URL_https~~\\fbcdn-sphotos-f-a.akamaihd.net\
I tried various things but nothing worked out
i tried as follows
one:
strTest2.replace("\\\\\\\\","\\\\"
two:
strTest2 .replace(/[/\*]/, "");
Three:
strTest2.replace(/\|\|/g, "\\");