/**
* 判断邮箱
*
* @param str
* @return
*/
public static boolean phoneEmail(String str) {
String strPattern = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
Pattern p = Pattern.compile(strPattern);
Matcher m = p.matcher(str);
if (m.matches()) {
return true;
} else {
return false;
}
}
邮箱检测
最新推荐文章于 2024-07-16 02:09:49 发布