title: Regex not working in jquery validation plugin
body: <p>I am using below code    </p>
  
  <pre><code>$(function() {
      $("#myForm").validate({
          rules: {
              experience: {
                  required: true,
                  regex: '^[0-9]$'
              }
          },
          messages: {
              experience: {
                  required: "Please provide experience",
                  regex: "Provide a valid input for experience"
              }
          }
      });
  });
  </code></pre>
  
  <p>But the above code is not taking 2 or 22 as valid input? What I am doing wrong? Help required...</p>