We have different regular expression patterns for validating email address.
In this article, I am sharing some useful cross browsers regular expression patterns for validating email address with java script and jquery.
~ characters are legal in the local part of an e-mail address but in the above regular expression those characters are filtered out. It begins with at least one or more word characters including the underscore, equivalent to [A-Za-z0-9_].
To validate email address on client side, we can use java script with regular expression.
Java script can check the regular expression pattern for valid email address.
However, from a security standpoint, client side JS wouldn't protect you from XSS, SQL injection, or other vulnerabilities.
IMHO, it's best to do some basic validation on the front end so that your users don't lose the data they entered (EX: check for empty fields, validate phone numbers or SSN).