Build, test, and debug regular expressions
This regular expression matches dates that consist of a 2 to 4 digit number, followed by an optional hyphen, then either a 3-letter word (like a month abbreviation) or a 2-digit month, and finally a mandatory hyphen and another 2 to 4 digit number. It is useful for parsing varied or localized date formats such as 2023-Jan-15 or 01-01-23 within text.