title: Minimum 6 characters, at least one uppercase letter, one lowercase letter, one number and one special character required in jquery
body: <p>Minimum 6 characters, at least one uppercase letter, one lowercase letter, one number and one special character required.But this regular expression not working for me.Code is given below:</p>
  <pre><code>$.validator.addMethod(&quot;password_regex&quot;, function(value, element) 
  {
   var password_regex = this.optional(element) || /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@#$!%*?&amp;^(){}])[A-Za-z\d@$!%*?&amp;]{6,}$/.test(value);
  
   var password_regex = this.optional(element) || /^(?=.{8,})(?=.[a-z])(?=.[A-Z])(?=.[@#$%^&amp;+=]).$/.test(value);
  
     return password_regex;
          }, 
  </code></pre>