I need to make email validation on client side same with FILTER_VALIDATE_EMAIL. So what would be the equivalent regex on javascript with the FILTER_VALIDATE_EMAIL?
I found that FILTER_VALIDATE_EMAIL regex is from here: http://squiloople.com/2009/12/20/email-address-validation/ but when I tried to copy paste the regex to javascript I get SyntaxError: Invalid regular expression: /#<error>/: Invalid group