title: PHP Regex - Minimum of 8 characters, 1 letter, 1 number
body: <p>So I thought I had this right?</p>
  
  <pre><code>        if(!preg_match('^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+.{7,}$', $passOne)) {
              $msg = "Password does not contain at least 1 number/letter, 8 character minimum requirement.";
          }
  </code></pre>
  
  <p>I test it over at <a href="https://regex101.com/" rel="nofollow">https://regex101.com/</a> and put <code>^(?=.*[a-z])(?=.*[A-Z])(?=.*\d).+.{7,}$</code> to work and things like <code>RubyGlue12</code> pass and is a match and other things that aren't.</p>
  
  <p>But no matter what, I cannot make any match in the actual PHP code. Even if the POST is a variable manually.</p>
  
  <p>edit: <code>$_POST['password']</code> is <code>$passOne</code></p>
  
  <p>Help?</p>