title: password validation using javascript
body: <p>I need to match a password field using javascript with the following requirements:</p>
  
  <ol>
  <li>Should be alpha numaric with at least one special character.</li>
  <li>no spaces to be allowed</li>
  <li>should be minimum 10 char and max 20 chars.</li>
  <li>No repeate of char more than 2 times.</li>
  <li>~,'.:;^| are not allowed</li>
  </ol>
  
  <p>I have a regex<br>
  var password = /^(?=.<em>[0-9])(?=.</em>[!@#$%^&amp;<em>])[a-zA-Z0-9!@#$%^&amp;</em>]{10,20}$/;
   how can i solve this?     </p>