title: Asp.net MVC data annotations treats 0123 as non integer
body: <p>related: <a href="https://stackoverflow.com/questions/10461490/is-not-123-0123-in-java">why is not (123 == 0123) in java?</a></p>
  
  <p>For a phone number i am validating using MVC Data Annotations like below</p>
  
  <pre><code>[RegularExpression(@"^[\d]{3}$", ErrorMessage = "*")]
  [Range(0, 999, ErrorMessage = "*")]
  public int IntlCode { get; set; }
  </code></pre>
  
  <p>value <code>012</code> validates fine in Client side but does not on the server side, Could someone explain why or what is wrong</p>