title: Regular Expression Issue - Validate Email Address - Android
body: <p>Why does it require me to hit a space and a backspace in order for the Error to disappear in the EditText widget after I type the email address in the EditText widget?  Here is the source code I'm using:</p>
  
  <pre><code>if (!Pattern.matches("^[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+(?:\\.[a-z0-9!#$%&amp;'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+(?:[A-Z {2}|com|org|net|gov|mil|biz|info|mobi|name|in|aero|jobs|museum)$", s)) {
                      et.setError("please enter a valid email address");
  }
  </code></pre>
  
  <p>Why is it doing this?  What am I doing wrong?  Any help would be appreciated!</p>