title: Regex to validate password containing a digit rejects string with multiple digits
body: <p>I have the following pattern to validate a password form (not ideal, I know, but it’s for an assignment).</p>
  
  <pre><code>/^(?=[a-zA-Z0-9]{8,})(?=[a-zA-Z]*[0-9][a-zA-Z]*$)[a-zA-Z0-9]+$/
  </code></pre>
  
  <p>My idea is, I need the password to be at least 8 letters long, and include at least one number and one letter. It also cannot include any special characters.</p>
  
  <p>It accepts <code>password1</code> as a password, but it does not accept <code>password12</code> as a password. How can I fix this?</p>