Regex.Matches的一个正则表达试怎么写 那位 帮下忙!! 在线
代码是这样的
MatchCollection matches = Regex.Matches(this.HTML, "http://(\\S+[^<^>])\"");
我想用他生成一个见面文件里的所有网站连接 this.HTML是一个网页源码的文。
如 this.HTML=“http://www.baidu.com/cn”
matches=
[0]: "http://passport.baidu.com/?login&tpl=mn&u='+escape(location.href)+'"
[1]: "http://www.hao123.com"
[2]: "http://www.baidu.com')"
好像生成的 网站 有一点错误
那位能帮忙写一个好的 正则表达试??
谢谢