title: Checking for uppercase/lowercase/numbers with Jquery
body: <p>Either I'm being really retarded here or its just the lack of sleep but why doesn't this work? If I use the "or" operator it works for each separate test but as soon as it change it to the "and" operator it stops working.</p>
  
  <p>I'm trying to test the password input of a form to see if its contains lowercase, uppercase and at least 1 number of symbol. I'm having a lot of trouble with this so help would be lovely, here is the code I have.</p>
  
  <pre><code>var upperCase= new RegExp('[^A-Z]');
  var lowerCase= new RegExp('[^a-z]');
  var numbers = new RegExp('[^0-9]');
  
  if(!$(this).val().match(upperCase) &amp;&amp; !$(this).val().match(lowerCase) &amp;&amp; !$(this).val().match(numbers))    
  {
      $("#passwordErrorMsg").html("Your password must be between 6 and 20 characters. It must contain a mixture of upper and lower case letters, and at least one number or symbol.");
  }
  else
  {
      $("#passwordErrorMsg").html("OK")
  }
  </code></pre>