title: Validating an email address on key-press using javascript & jquery
body: <p>I'm trying to prevent users from inputting invalid characters when typing-in an email address.  I am <strong>NOT</strong> trying to validate the entire value as-a-whole (that happens later).</p>
  
  <p><strong>I "thought" this was the correct way to prevent a list of characters (such as # or $):</strong><br/></p>
  
  <pre><code>/[A-Z0-9a-z@]^[$#&lt;&gt;?]/
  </code></pre>
  
  <p><strong>This part works:</strong><br/></p>
  
  <pre><code>/[A-Z0-9a-z@]/
  </code></pre>
  
  <p><strong>This part fails:</strong><br/></p>
  
  <pre><code>/^[$#&lt;&gt;?]/
  </code></pre>
  
  <p>Any thoughts?</p>