Java Tester Regex Online
/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/
Tame Tortoise
/^\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/
Find below are online regex tester
https://regex101.com/
https://pythex.org/
http://www.pyregex.com/
https://www.debuggex.com/
Here you insert your regular expression and get the test result.
Thank you !!!
Date: 02/04/2023