Build, test, and debug regular expressions
This regex validates dates in YYYY/MM/DD format, accounting for leap years and month-specific day limits. It uses named capture groups and conditional matching to ensure February 29th is only allowed on leap years, odd-numbered months allow up to 31 days, and even-numbered months allow up to 30 days.