title: Validation for 4-digit numbers with one decimal place
body: <p>I am trying to create a jquery validation for number.</p>
  
  <p>It should allow 4 digit first and then after decimal point it should allow 1 digit.</p>
  
  <p>For decimal my code is working fine:</p>
  
  <pre><code>$.validator.addMethod('Decimal', function(value, element) {
      return this.optional(element) || /^[0-9,\d{4}]+(\.\d{0,1})?$/.test(value); 
    }, "Please enter a correct number, format xxxx.X");
  </code></pre>
  
  <p>I may be making mistake in regular expression.</p>