regex for match integers in given range code example
Example 1: regular expression number from 1 to 100
^[1-9][0-9]?$|^100$
Example 2: regex for numbers
Regex regex = new Regex(@"^\d$");
^[1-9][0-9]?$|^100$
Regex regex = new Regex(@"^\d$");