热门

最新

红包

立Flag

投票

同城

我的

发布
zhiwenganyong
像向日葵一样~
4 年前
truezhiwenganyong

/**
* 验证邮箱合法性
* @param email
* @return
*/
public static boolean verifyEmail(String email){
if(StringUtils.isBlank(email) || email.length()>50) return false;
String regExp = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";
Pattern p = Pattern.compile(regExp);
Matcher m = p.matcher(email);
return m.matches();
}

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
C站真好玩,有个问题啊,大家是真的像我一样优秀呢,还是实际上像我一样在装逼呢?
立即登录