摘要: 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) 编辑