function isValidEmailAddress emailAddress var pattern a-zA-Z0-9_ a-zA-

1
2
3
4
function isValidEmailAddress(emailAddress) {
var pattern = /^([a-zA-Z0-9_.+-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
return pattern.test(emailAddress);
}