Test, validate and match regular expressions
This regular expression matches date strings formatted with a day, a textual month, and a year, separated by either spaces or hyphens. It validates dates like "01-January-2023" or "1 January 2023", capturing common human-readable date formats. The multiline and global flags allow it to find multiple matching dates across several lines of text. It is useful for parsing logs, extracting dates from documents, or validating user input where month names are used.