i have the pattern that checks for bad email:
var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-
Z])+/;
I want to add a check for a domain name: "mycompany"
such that:
peter@mycompany .com
is a match. and, any other domain is not a match.
Any gurus know how to add this piece?
Thanks.
Peter
var pattern=/^([a-zA-Z0-9_.-])+@([a-zA-Z0-9_.-])+\.([a-zA-Z])+([a-zA-
Z])+/;
I want to add a check for a domain name: "mycompany"
such that:
peter@mycompany .com
is a match. and, any other domain is not a match.
Any gurus know how to add this piece?
Thanks.
Peter
Comment