Build, test, and debug regular expressions
This regex matches ATLAS Monte Carlo MxAOD output filenames used by the HGam (Higgs to gamma gamma) analysis group. It captures the MC campaign (mc16a/c/d/e), dataset short name, MxAOD flavor, ATLAS processing tags (e/s/r/p tags), optional h-tag with hash suffix, and an optional file index. It is useful for parsing and validating physics production file naming conventions in ATLAS analysis workflows.