I have a field on my c# mvc model to hold percentage - I want to use RegEx data annotation to validate that the field only contains values of 0-100
I seen a similar Regex here - ^([1-9][0-9]{0,2}|1000)$
- that matches values 1-1000 - I am not sure of the correct ammendment to make it fit for my scenario?
I tried something like below ^([0-9][0-9]{0,2}|100)$
but not working as expected?