title: Regular expressions for password validation
body: <p>I need to validate a password that matches the following criteria:</p>
  
  <ul>
  <li>minimum 8 characters</li>
  <li>contain a combination of numbers and letters</li>
  <li>must not enforce special characters</li>
  </ul>
  
  <p>The follow regular expression is what I came up with:</p>
  
  <pre><code>^{8,}.(?=*\d)(?=.*[a-zA-Z])&amp;
  </code></pre>
  
  <p>but this is failing on:</p>
  
  <ul>
  <li>!password1</li>
  <li>password1</li>
  <li>Password1</li>
  </ul>
  
  <p>From what I can gather, trying to investigate RegEx, <code>{8,}</code> means minimum of 8 and don't care about the maximum, <code>\d</code> specifies digits, whitespaces and special characters. The a-z makes sense.</p>