Test, validate and match regular expressions
This regular expression matches strings that consist of exactly 4 digits, a hyphen, 4 digits, another hyphen, 2 digits, a final hyphen, and 10 digits, with no extra characters before or after. It is useful for validating strictly formatted identifiers such as transaction IDs, serial numbers, or reference codes that follow a specific digit-group pattern with hyphens as separators. The global flag does not affect the match since the anchors enforce a single full-string match.