The best one to use for client-side validation to ensure correct input would be the regex below It allows the following: 120, 1230, 102, 1023, 012, 0123, and disallows the following: 000 and 0000. youre welcome
^(?!000$)\d{3,4}$"