title: add regex to jquery.validate
body: <p>Need to add a regex check to my jquery.validate script. </p>
  
  <p>I have this:</p>
  
  <pre><code>$().ready(function() {
    $("#myBlahForm").validate({
  
      rules: {
          someName: {
              required: true,
              minlength: 5,
              maxlength: 8,
          },
          somePassword: {
              required: true,
                              minlength: 5,
              maxlength: 8,
          },
          someConfirmPassword: {
              required: true,
              equalTo: "#somePassword"
          },
      },
      messages: {
          someName:  {
              required: "Please create your username",
          },
          somePassword: {
              required: "Please create a password",
          },
          someConfirmPassword: {
              required: "Please re-enter your password",
              equalTo:  "Passwords must match"
          },
      }
  });
  </code></pre>
  
  <p>});</p>
  
  <p>And I would like to check for specific characters that are allowed in the DB for passwords when the user enters their data here:</p>
  
  <pre><code>    &lt;label for="someName"&gt;Username&lt;/label&gt;
      &lt;input type="text" id="someName" name="someName" placeholder="Create a Username"/&gt;
  
      &lt;label for="somePassword"&gt;Password&lt;/label&gt;
      &lt;input type="password" id="somePassword" name="somePassword" placeholder="Create a Password"/&gt;
  
      &lt;label for="someConfirmPassword"&gt;Confirm Password &lt;/label&gt;
      &lt;input type="password" id="someConfirmPassword" name="someConfirmPassword" placeholder="Verify your Password"/&gt;
  </code></pre>
  
  <p>What's the best way to add a regex check to a required field such as a password or username using jquery.validate plugin from bassisstance: <a href="http://docs.jquery.com/Plugins/Validation" rel="noreferrer">http://docs.jquery.com/Plugins/Validation</a></p>
  
  <p>Basically, I need to make sure that the password and usernames they create only have 0-9, letters, and a couple of special characters.</p>