This function makes sure the email address has one "@", atleast one ".".It also makes sure that there are no spaces, extra '@'s or any "." just before or after the @.
indicates the minimum and maximum number of characters.
Please post your feedback, question, or comments about this article.
27-Oct-2014: The script on this page has been updated to deal with cross-browser issues.
Below is simple regular expression to validate an email address. In this article I try to explain, how you can validate different-different email address acc. I hope after reading this article you will be able to use this trick in your code.