class L
{
public static void main(String args[])
{
checkTel();
}
public static void checkTel()
{
String tel="13996555800";
String telRegex="[1][358]\\d{9}+";
System.out.println(tel.matches(telRegex));
}
}
正则表达式(校验电话号码)
最新推荐文章于 2025-05-26 10:31:21 发布