.net/wpf 判断输入的字符串是否是一个合法的手机号

public static bool IsMobilePhone(string input)
{
Regex regex = new Regex("^1[34578]\d{9}$");
return regex.IsMatch(input);

    }
发布了115 篇原创文章 · 获赞 36 · 访问量 9896

猜你喜欢

转载自blog.csdn.net/weixin_44548307/article/details/102908956
今日推荐