会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
上山打老虎
博客园
首页
新随笔
联系
订阅
管理
2016年4月14日
java--正则表达式——邮箱规范
摘要: String Eail="[a-zA-Z0-9]{3,20}@[a-zA-Z0-9]{2,10}[.](com|cn|net)"; 中括号表示任意字符,花括号表示出现的次数,小括号表示出现的字符内容字符串。 if(emal.matches(Emal)){ } 是否满足正则表达式给定的格式规范。 {3
阅读全文
posted @ 2016-04-14 23:50 forevery
阅读(841)
评论(0)
推荐(0)
编辑
公告