#region 验证手机号
/// <summary>
/// 验证手机号
/// </summary>
/// <param name="source"></param>
/// <returns></returns>
public bool IsMobile(string source)
{
return Regex.IsMatch(source, @"^1[358]\d{9}{1}quot;, RegexOptions.IgnoreCase);
}
public bool HasMobile(string source)
{
return Regex.IsMatch(source, @"1[358]\d{9}", RegexOptions.IgnoreCase);
}
#endregion
验证手机号
最新推荐文章于 2024-08-16 10:01:13 发布