Test, validate and match regular expressions
Matches three types of hyphenated identifier codes used in carbon material classification: (1) C or M followed by two single digits, (2) T followed by three single digits, and (3) A followed by arbitrary text, two digits, a cardinal direction (N/S/E/O), and a sequence of A/G/D characters. Allows flexible whitespace around hyphens.