[置顶] checkEmail判断邮箱格式
// checkEmail判断邮箱格式 public boolean checkEmail(String email) { Pattern pattern = Pattern .compile("^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(\\.([a-zA-Z0-9_-])+)+$"); Matcher matcher = pattern.matcher(email); if (matcher.matches()) { return true; } return false; }