Build, test, and debug regular expressions
This regular expression validates dates in formats like MM/DD/YYYY, MM-DD-YYYY, or MM.DD.YYYY. It enforces logical day limits for each month, including specific rules for leap years (matching February 29th only when the year is a valid leap year). It supports years ranging from 1600 to 9999 and is useful for ensuring user input represents a real calendar date.