title: How to allow set of special characters in existing regex?
body: <p>We have regex to validate password with one digit, one upper case letter and one lower case letter. Regex is:</p>
  
  <pre><code>^\w*(?=\w*\d)(?=\w*[a-z])(?=\w*[A-Z])\w*$
  </code></pre>
  
  <p>This regex will not allow any special characters. I need to change regex to allow some list of special characters and there should not be any restriction that there must be at least one special character. Only <code>[-!$%^&amp;*()_+|~=`{}\[\]:";'&lt;&gt;?,.\/]</code> should be allowed as special characters without must have one restriction.</p>
  
  <p>I tried:</p>
  
  <pre><code>^\w*(?=\w*\d)(?=\w*[a-z])(?=\w*[A-Z])(?=\w*[-!$%^&amp;*()_+|~=`{}\[\]:";'&lt;&gt;?,.\/]*)\w*$ 
  </code></pre>
  
  <p>and which seems to be wrong. Please some one help.</p>