title: Javascript Email RegEx Problem with JSLint?
body: <p>I'm trying to validate that an email address is in the correct format by using the below function.<br>
  This function works fine however it will not build as JSLint gives me the following error.
  <code>: error (Lint occured): Unescaped '['.</code></p>
  
  <p>I have tried escaping the characters which need to be escaped, this fixed the problem with JSLint but the RegExp no longer worked.</p>
  
  <p>Any help here on what I should do?</p>
  
  <pre><code>function validateEmail(email) 
  { 
    var re = /^(([^&lt;&gt;()[\]\\.,;:\s@\"]+(\.[^&lt;&gt;()[\]\\.,;:\s@\"]+)*)|(\
    ".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA
    -Z\-0-9]+\.)+[a-zA-Z]{2,}))$/ 
    return email.match(re) 
  }
  </code></pre>