Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

 \"http://www.google.com"

I am trying to just get the href (http://www.google.com) but nothing I found online works. Below is a list of found solutions which I tried and which do not work. Ps. the string with the escape sequence (as I understand its not just backlash) I am getting and cannot change. Thank you!!

str.replace(String.fromCharCode(92),String.fromCharCode(92,92)); //not working
str.replace(/\/, "\\"); // not working
str.replace(/(s)/g,function($0){return $0==' '?' ':'\s'}) //not working

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
336 views
Welcome To Ask or Share your Answers For Others

1 Answer

等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...