标签:
1.带协议表达式
var pattern = @"[(?<=http://)|(?<=https://)]+[\w\.]+[^/?#]";
2.不带协议表达式
var pattern = @"((?<=http://)|(?<=https://))[\w\.]+[^/?#]";
C# 正则匹配domain
原文地址:http://www.cnblogs.com/gaobing/p/5415708.html