title: jquery to validate phone number
body: <p>I want to validate phone numbers like (123) 456-7890 or 1234567890
   How should be the 'matches' condition be written in the following code?</p>
  
  <pre><code>form.validate({
  
      rules: {
  
         phoneNumber: {matches:"[0-9]+",minlength:10, maxlength:10}
  </code></pre>