SyntaxFix
Write A Post
Hire A Developer
Questions
/^\d{4}$/ This will check if a string consists of only 4 numbers. In this scenario, to input a year 989, you can give 0989 instead.