Build, test, and debug regular expressions
Intended to match Mexican CURP (Clave Única de Registro de Población) national ID numbers: 4 uppercase letters, 6 digits for the birth date (YYMMDD), an H/M sex indicator, 5 more letters, and 2 trailing digits. Note it contains typos — the character classes `[[0-9]` also match a literal '[' and `[H|M]` also matches '|' — so it can accept malformed IDs. With global/multiline flags, it's designed to scan documents, forms, or logs and extract CURP identifiers line by line.