title: mvc regex to validate numbers as 00-99
body: <p>I am working on asp.net mvc3 and i want a particular requirement that the mvc validation uses numbers from 0-99 so that i have the regex as</p>
  
  <p>[RegularExpression("[0-9]{1,2}$")]</p>
  
  <p>Now i want a particular requirement that the numbers from 0-9 must pass validation if it is typed as 01,02,....,09 and the rest of the numbers between as 10-99 should pass validation as a two digit number.</p>
  
  <p>Please help me on this regex. I have googled it but to no avail.</p>
  
  <p>can anyone suggest a regex for this type.</p>