justinpees justinpees - 29 days ago 6
ASP.NET (C#) Question

What is the regex ValidationExpression to allow only numbers 1 to 100 in text box?

I would like to limit my users input in text box to allow only positive numbers from 1 to 100 how can I do this using a regex expression?

Answer Source

Check that the string is 100 or two digits: