title: Regexp Java for password validation
body: <p>I'm creating a regexp for password validation to be used in a Java application as a configuration parameter.</p>
  
  <p>The regexp is:</p>
  
  <pre><code>^.*(?=.{8,})(?=..*[0-9])(?=.*[a-z])(?=.*[A-Z])(?=.*[@#$%^&amp;+=]).*$
  </code></pre>
  
  <p>The password policy is:</p>
  
  <ul>
  <li><p>At least 8 chars</p></li>
  <li><p>Contains at least one digit</p></li>
  <li><p>Contains at least one lower alpha char and one upper alpha char</p></li>
  <li><p>Contains at least one char within a set of special chars (<code>@#%$^</code> etc.)</p></li>
  <li><p>Does not contain space, tab, etc.</p></li>
  </ul>
  
  <p>I’m missing just point 5. I'm not able to have the regexp check for space, tab, carriage return, etc.</p>
  
  <p>Could anyone help me?</p>