title: Password validation regex
body: <p>I am trying to get one regular expression that does the following:</p>
  
  <ol>
  <li>makes sure there are no white-space characters</li>
  <li>minimum length of 8</li>
  <li>makes sure there is at least:
  <ul>
  <li>one non-alpha character</li>
  <li>one upper case character</li>
  <li>one lower case character</li>
  </ul></li>
  </ol>
  
  <p>I found this regular expression:</p>
  
  <pre><code>((?=.*[^a-zA-Z])(?=.*[a-z])(?=.*[A-Z])(?!\s).{8,})
  </code></pre>
  
  <p>which takes care of points 2 and 3 above, but how do I add the first requirement to the above regex expression?</p>
  
  <p>I know I can do two expressions the one above and then</p>
  
  <pre><code>\s
  </code></pre>
  
  <p>but I'd like to have it all in one, I tried doing something like <code>?!\s</code> but I couldn't get it to work. Any ideas?</p>