title: Regular expression to check if password is "8 characters including 1 uppercase letter, 1 special character, alphanumeric characters"
body: <p>I want a regular expression to check that </p>
  
  <blockquote>
    <p>a password must be eight characters including one uppercase letter, one special character and alphanumeric characters.</p>
  </blockquote>
  
  <p>And here is my validation expression which is for eight characters including one uppercase letter, one lowercase letter, and one number or special character.</p>
  
  <pre><code>(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$"
  </code></pre>
  
  <p>How I can write it for a password that must be eight characters including one uppercase letter, one special character and alphanumeric characters?</p>