正则表达式
来源:互联网 发布:剑灵捏脸数据导入教程 编辑:程序博客网 时间:2024/05/29 15:11
public
static
boolean
isEmail(String strEmail) {
String strPattern =
"^[a-zA-Z][\\w\\.-]*[a-zA-Z0-9]@[a-zA-Z0-9][\\w\\.-]*[a-zA-Z0-9]\\.[a-zA-Z][a-zA-Z\\.]*[a-zA-Z]$"
;
Pattern p = Pattern.compile(strPattern);
Matcher m = p.matcher(strEmail);
return
m.matches();
}
public
static
boolean
isMobileNO(String mobiles) {
Pattern p = Pattern
.compile(
"^((13[0-9])|(15[^4,//D])|(18[0,5-9]))//d{8}$"
);
Matcher m = p.matcher(mobiles);
System.out.println(m.matches() +
"---"
);
return
m.matches();
}
- 【正则表达式】正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- 正则表达式
- C1FlexGrid实现柱形图
- 解决TCP网络传输“粘包”问题
- 《JavaScript语言精髓与编程实践》(第二版)相关资源汇总
- OpenCV HOGDescriptor 参数图解
- A New Venn Of Access Control For The API Economy
- 正则表达式
- Google Chrome(谷歌浏览器)浏览GOOGLE崩溃的解决方法
- Twitter测试新的广告投放政策,会显示用户未关注的商家广告
- 设置mysq自增初始值
- GPIO上拉电阻的作用
- Linux平台设备驱动
- input子系统
- 中国石化
- 纹理映射