日期:2014-05-17 浏览次数:20499 次
string str = "@" + phone;
string strmatch = @"^((13[0-9])|(15[^4,\\D])|(18[0,3-9]))\\d{8}$";//
Regex reg = new System.Text.RegularExpressions.Regex(strmatch);
MatchCollection mc = reg.Matches(str);
if (mc.Count > 0)
{
...
}
else
{
...
}