The regexp would be:
/^WI-(?:20[0-9]{2}|2100)-[1-9][0-9]{0,3}$/
This regexp allows arbitrary number of -nnn
after the year:
/^WI-(?:20[0-9]{2}|2100)(?:-\d+)+$/
5
solved Regular expression to validate text field format “WI-XXXX-XXXX”
The regexp would be:
/^WI-(?:20[0-9]{2}|2100)-[1-9][0-9]{0,3}$/
This regexp allows arbitrary number of -nnn
after the year:
/^WI-(?:20[0-9]{2}|2100)(?:-\d+)+$/
5
solved Regular expression to validate text field format “WI-XXXX-XXXX”