function verifyEmail(component){
var status = false;
var emailAddress = component.value;
if(emailAddress == ""){
return true;
}
var emailRegEx = /^([A-Z0-9._%+-])+@([A-Z0-9.-])+\.([A-Z])+$/i;
if (!(emailAddress.search(emailRegEx) == -1)) {
status = true;
}
return status;
}
This regex accepting duplicate words after @ . Eg: leela.lokesh@in.csc.com.com Here com word is coming 2 times. we should not allow duplicate words after '@'