电子邮箱和电话
来源:互联网 发布:国家文物局官网通知 编辑:程序博客网 时间:2024/04/28 13:45
- import java.util.regex.Matcher;
- import java.util.regex.Pattern;
- /**
- * <p>
- *
- * <p>Copyright the original author or authors.
- *
- * @author Liu Huibin
- * @date Aug 27, 2010
- * @dateLastModified Aug 27, 2010
- */
- public class Test {
- public static void main(String[] args) {
- //电子邮件
- String check = "^([a-z0-9A-Z]+[-|\\.]?)+[a-z0-9A-Z]@([a-z0-9A-Z]+(-[a-z0-9A-Z]+)?\\.)+[a-zA-Z]{2,}$";
- Pattern regex = Pattern.compile(check);
- Matcher matcher = regex.matcher("dffdfdf@qq.com");
- boolean isMatched = matcher.matches();
- System.out.println(isMatched);
- /* 电话号码
- String check = "^(13[4,5,6,7,8,9]|15[0,8,9,1,7]|188|187)\\d{8}$";
- Pattern regex = Pattern.compile(check);
- Matcher matcher = regex.matcher("13555655606");
- boolean isMatched = matcher.matches();
- System.out.println(isMatched);
- */
- }
- }
0 0
- 电子邮箱和电话
- 电子邮箱
- android访问电话号码和电子邮箱
- django -电子邮箱
- 400电话和800电话的区别
- 电话电话天赋和收费静一静
- 电话监听和调用挂断电话
- ios短信和电话
- 和妹妹的电话
- 电话短信和邮件
- 新浪电子邮箱为何瘫痪?
- js电子邮箱验证代码
- js 验证电子邮箱
- 电子邮箱的判定方法
- 电子邮箱的各种协议
- Android实现电子邮箱客户端
- js验证电子邮箱
- Sicily1133: SPAM (电子邮箱匹配)
- Bro 快速入门
- DruidDataSource 通过编码方式实现数据库读写分离。
- Luci流程分析
- VLD(Visual LeakDetector)内存泄露库的使用
- React 初步学习(三)
- 电子邮箱和电话
- 讯飞语音识别Demo简洁版,语音识别、文字转语音、按压识别
- android Surface概述
- 织梦获取缩略大图的方法
- TCP连接吞吐率和线路效率的总结
- log4j+JDBC+mySQL 将对象写入数据库
- java连接zookeeper集群
- titan配置相关
- 根据生日计算年龄