62,041
社区成员
发帖
与我相关
我的任务
分享
Regex reg = new Regex(@"(?i)href=(['""]?)(?=(?!https?://)[^'""\s]+\.(?:shtml|css|js|aspx)\1)");
source = reg.Replace(source, @"$0http://abc.sina.com.cn");
string source = @"href=""/Product/List-0039,0084.shtml""";
Regex reg = new Regex(@"(?is)(?<=href="")/[^""]+(?="")");
source = reg.Replace(source, @"http://abc.sina.com.cn$0");
MessageBox.Show(source);