C#验证手机号码(包含13,15,18号码开头)
首页引用using System.Text.RegularExpressions;
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
/// <summary>
/// 是否是手机号码
/// </summary>
/// <param name="val"></param>
public static bool IsMobile(string val)
{
return Regex.IsMatch(val, @"^1[358]\d{9}$", RegexOptions.IgnoreCase);
}