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.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bd8680-3110c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bd8680-3110c.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?