title: Regex pattern for a password
body: <p>I need a regex pattern that validates a password format.
  The rules are:</p>
  
  <ul>
  <li>Minimum 8 chars in total</li>
  <li>at least two letters</li>
  <li>at least two digits or symbols</li>
  </ul>
  
  <p>I came up with the following:
  <code>/((?=.*[0-9\@\&amp;#\$\?\%!\|(){}[]])(?=.*[a-zA-Z]).{8,})/</code></p>
  
  <p>It will look if both occure once, but I need it toch validate if they occur at least twice. 
  If I add the <code>{2,}</code> like this:
  <code>/((?=.*[0-9\@\&amp;#\$\?\%!\|(){}[]]{2,})(?=.*[a-zA-Z]{2,}).{8,})/</code></p>
  
  <p>Then the following doesnt work for example: a1a1a1a1a1</p>
  
  <p>Can anybody help me?</p>