title: FILTER_VALIDATE_EMAIL regex to javascript?
body: <p>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?</p>
  
  <p>I found that FILTER_VALIDATE_EMAIL regex is from here: <a href="http://squiloople.com/2009/12/20/email-address-validation/" rel="nofollow">http://squiloople.com/2009/12/20/email-address-validation/</a> but when I tried to copy paste the regex to javascript I get <code>SyntaxError: Invalid regular expression: /#&lt;error&gt;/: Invalid group</code></p>