href = "href=<a class=\"\" href=\"/news_guonei5_bbs/4TPOGS8C0001124J_4.html\">4</a>"
         href = Regex.Replace(href, "href=\"([\\s\\S]+?)\"",
                                "href=\"/ClawComment.aspx?url=http://comment.news.163.com$1\"",
                                RegexOptions.IgnoreCase|RegexOptions.Multiline);
-----这样解析出来是正常的/...
得到结果为
http://localhost:4839/ClawComment.aspx?url=http://comment.news.163.com/news_guonei5_bbs/4TPOGS8C0001124J_3.html我想把url参数编码一下:
            href = Regex.Replace(href, "href=\"([\\s\\S]+?)\"",
                                "href=\"/ClawComment.aspx?url="+Server.UrlEncode("http://comment.news.163.com$1"),
                                RegexOptions.IgnoreCase|RegexOptions.Multiline);这样解析出来的结果不正确...不知道什么原因...
http://localhost:4839/ClawComment.aspx?url=http%3a%2f%2fcomment.news.163.com%241 class=