How can I match '&' with JS RegExp
I have a开发者_如何学编程n url-encoded url (so with & replaced to &), but I want to replace all the occurences of & back to & using javascript. Currently I'm using myStr.replace("/&/g", "&"), but that doesn't work (replaces nothing).
Thanks,
Lex
myStr.replace(/&/g, "&")
加载中,请稍侯......
精彩评论