日期:2014-05-18 浏览次数:20753 次
Regex RegPhone = new Regex("^(?:\\+?86)?0{0,1}(13[0-9]|15[7-9]|153|156|18[7-9])[0-9]{8}$"); string str = "+8613956686246"; Console.WriteLine(RegPhone.IsMatch(str)); //true
------解决方案--------------------
new Regex(@"^((\+86)|(86))?0{0,1}(13[0-9]|15[7-9]|153|156|18[7-9])[0-9]{8}$", RegexOptions.IgnoreCase | RegexOptions.Multiline)