Ringer

判断邮箱格式

public static boolean isEmail(String strEmail) {
String strPattern = "\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*";
Pattern p = Pattern.compile(strPattern);
Matcher m = p.matcher(strEmail);
if (m.matches()) {
return true;
}else {
return false;
}
}

发表于 2014-10-18 12:16  Ringer  阅读(138)  评论(0编辑  收藏  举报
 

分类:

技术点:

相关文章:

  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2021-09-04
  • 2021-11-21
  • 2021-12-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案