Email id Validation
Simple way of check email is valid or not
public String REGEX_EMAIL_ID = "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
if(!fp_email.matches(REGEX_EMAIL_ID)){ fp_email.setError("Email Id Not Valid");}
No comments:
Post a Comment