title: MVC .net password validation using regular expression
body: <p>I'm writing a regular expression to validate a password. The conditions are:</p>
  
  <ol>
  <li><p>Password must contain at least two special characters</p></li>
  <li><p>Password must be at least eight characters long</p></li>
  <li>Password must be alpha numeric</li>
  </ol>
  
  <p>I'm able to make sure that there are atleast 8 characters, atleast one alphabet, atleast one number and atleast one special character using the below Regular expression:</p>
  
  <pre><code>(?=.*[A-z])(?=.*[0-9])(?=.*?[!@#$%\^&amp;*\(\)\-_+=;:'""\/\[\]{},.&lt;&gt;|`]).{8,32}
  </code></pre>
  
  <p>Only condition i'm not able to get is there must be atleast two special characters (Above Reg exp is atleast one special characters). Does anyone have any idea on this?</p>
  
  <p>Thanks in advance.</p>