On my MVC3 project, I store score prediction for football/soccer/hockey/... sport game. So one of properties of my prediction class looks like this:
[Range(0
Try one of these regular expressions:
// for numbers that need to start with a zero [RegularExpression("([0-9]+)")] // for numbers that begin from 1 [RegularExpression("([1-9][0-9]*)")]
hope it helps :D