regular expression number from 1 to 100

JavaScript
^[1-9][0-9]?$|^100$
Source

Also in JavaScript: