请教高手正则表达试
在JAVA里怎么用正则表达试判断是否是手机号码.
[解决办法]
"[138|135|159|134|139|剩下的]([1-9]){8} "
[解决办法]
if( "13800138000 ".matches( "1(3|5)\\d{9} ")){
System.out.println( "Telephone Number ");
}
发布时间: 2011-12-24 23:03:24 作者: rapoo
请教高手正则表达试
在JAVA里怎么用正则表达试判断是否是手机号码.
[解决办法]
"[138|135|159|134|139|剩下的]([1-9]){8} "
[解决办法]
if( "13800138000 ".matches( "1(3|5)\\d{9} ")){
System.out.println( "Telephone Number ");
}