this is what I originally wrote:
var s = "var a = "test"; // 1234678"
s.replace(/\/\/[\s\S]*?\n?$/,"");
later found that there is such a code in the code:
var a = "://"+host;// 123456
var s = " // tset "; // test
var a = "http://www.a.com//b/c";
so it"s so complicated. I don"t know how to write this rule. =