using System.Text.RegularExpressions; //正则表达式的引用空间
Regex reg = new Regex("href/s*=/s*"([^"]*)"", RegexOptions.IgnoreCase);
MatchCollection matchs = reg.Matches(str);
using System.Text.RegularExpressions; //正则表达式的引用空间
Regex reg = new Regex("href//s*=//s*/"([^/"]*)/"", RegexOptions.IgnoreCase);
MatchCollection matchs = reg.Matches(str);
1万+

被折叠的 条评论
为什么被折叠?



