Email Validation using JavaScript Regular Expression

Even now and then we need to add email validation on our forms. The following block of code provides you a way to perform email validation using JavaScript regular expressions. The validateEmail function returns true/false based upon the call performed using the JavaScript test function on Regular expression. Good Luck!