Moshambi
04-17-2009, 06:41 AM
I have this regular expression to test for an email:
/^[a-zA-Z0-9\- ]+\@[a-zA-Z0-9 \-\.]+\.([a-zA-Z]{2,3})$/;
It works all good except that if I put an email like:
johndoe@this..com
It will say its valid even though there are two '.'
Any idea how I could fix this?
/^[a-zA-Z0-9\- ]+\@[a-zA-Z0-9 \-\.]+\.([a-zA-Z]{2,3})$/;
It works all good except that if I put an email like:
johndoe@this..com
It will say its valid even though there are two '.'
Any idea how I could fix this?