号码识别正则表达式
来源:互联网 发布:js内存泄露是什么意思 编辑:程序博客网 时间:2024/04/29 09:00
import java.util.regex.*;public class test {public static boolean isPhoneNum(String s) {Pattern pattern = Pattern.compile("^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$");Matcher matcher = pattern.matcher(s);return matcher.matches();}public static void main(String[] args) {System.out.println(isPhoneNum(args[0]));}}
0 0
- 号码识别正则表达式
- 正则表达式匹配号码
- 正则表达式-移动号码判断
- 正则表达式判断移动号码
- 正则表达式判断连续号码
- 正则表达式验证固定号码
- mysql 身份证明号码 正则表达式
- 车牌号码验证正则表达式
- 《正则表达式识别》
- 正则表达式识别实现
- 正则表达式识别URL
- 正则表达式识别ip
- 正则表达式中文识别
- 正则表达式识别车牌
- 电话号码、手机号码、特殊号码的正则表达式
- 正则表达式匹配移动、联通、电信号码
- 正则表达式判断号码靓号类型
- 正则表达式判断号码靓号类型
- 基于注解的spring事务管理@Transactionl
- 小学语文生字表3087字(人教版)
- Cannot find JAR 'jarjar-maven-settings-3.0.4.jar'
- TQ2440 学习笔记—— 32、移植U-Boot【U-Boot 的移植】
- 纯音测听——实现定制固定分贝、频率的纯音
- 号码识别正则表达式
- 网站编程积累
- How to configure DBCP connection pool in Hibernate
- 获取设备类型及信息
- ios开发系列之Animation Block的使用
- 【Leetcode】Longest Palindrome
- LeetCode_contains-duplicate
- Android开发——Mac环境配置
- 自定义Android 5.0中checkbox、RadioButton等控件