Test, validate and match regular expressions
This regex captures date strings formatted with a full or abbreviated month name, followed by a day (optionally with an ordinal suffix), a separator, and a two to four-digit year. It breaks the date down into captured groups like month, day, ordinal, separator, and year. It is useful for parsing dates in formats such as 'January 1st, 2023' or 'Dec 5-2022'.