I am trying to finalize a regular expression in javascript to only
allow emails with a certain domain to be valid.
Here is what I have so far:
var emailFilter2=/[^\w\-\.]\@aol.com/;
if(!(emailFilte r2.test(strng)) ) {
error = "Please enter a valid email address with the AOL domain.\n
\n";
}
Thanks for any help with this.
Louis
allow emails with a certain domain to be valid.
Here is what I have so far:
var emailFilter2=/[^\w\-\.]\@aol.com/;
if(!(emailFilte r2.test(strng)) ) {
error = "Please enter a valid email address with the AOL domain.\n
\n";
}
Thanks for any help with this.
Louis
Comment