Build, test, and debug regular expressions
Matches Wikimedia MediaWiki history dump filenames, capturing the dump date (YYYY-MM), the wiki language/project code, the coverage period (all-time, YYYY, or YYYY-MM), and an optional extension like .gz or .bz2. Handles names such as '2023-01.enwiki.all-time.tsv.gz' from dumps.wikimedia.org history datasets. The g and m flags allow finding multiple filenames across lines in a file listing.