728x90
반응형
public boolean checkEmail(String email){
String regex = "^[_a-zA-Z0-9-\\.]+@[\\.a-zA-Z0-9-]+\\.[a-zA-Z]+$";
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(email);
boolean isNormal = m.matches();
return isNormal;
Pattern p = Pattern.compile(regex);
Matcher m = p.matcher(email);
boolean isNormal = m.matches();
return isNormal;
}
728x90