regular expression for only numbers and not more than 3 digit in javascript code example Example: just number regex js // https://regex101.com/r/qyq3PG/1 // or /^[0-9]*$/