title: Regex for custom password requirements
body: <p>I was trying to create a regex as per the password requirements.The requirement is </p>
  
  <ul>
  <li>Minimum eight (8) characters</li>
  <li>At least one number (0-9)</li>
  <li>Any three of the following:
  
  <ul>
  <li>Lowercase</li>
  <li>Uppercase</li>
  <li>Number</li>
  </ul></li>
  <li>Special character (   ! " # $ % &amp; ' ( ) * + , - . / : ; &lt; = > ? @ [ \ ] ^ _ ` { | } ~ )</li>
  </ul>
  
  <p>I created this regex </p>
  
  <pre><code>/^[0-9a-zA-Z\s!"#$\%&amp;'\(\)\*\+\,\-\.\/\:;&lt;=&gt;?@\[\\\]\^\_\`\{\|\}\~]+$/g
  </code></pre>
  
  <p>I don't have that much knowledge of regex so just need confirmation is it right regex or need changes.</p>