I am using this below regex to check 01 to 12 and hardcoded 21 to 32 to validate. Looking for better solution without hardcoding.
^(?=(?:[0][0-9]|1[0-2])|21|22|23|24|