Instantly share code, notes, and snippets.
jQuery Email Validation using Regex Expression. you can use for PHP, ASP
return pattern.test($.trim(email)); is more adequate solution.
@EhteshamMehmood, your code/demo on phpcodify allows invalid emails.
For example, you allow some email beginning with a dot.