You can only enter the regularity of integers between 9999 and 100

you can only enter the regularity of integers between 9999 and 100.

Feb.27,2021

let reg=/^[1-9][0-9]{2,3}$/
reg.test(123)//true

/^[1-9]{1}\d{2,3}$/

regular is a string match, unless you transfer the string


var reg = /^[1-9][0,9]{2,3}$/
before matching.
Menu