Test, validate and match regular expressions
This regex matches structural lines in a GEDCOM 1.1 genealogy file by capturing the line level (0-5), optional record pointers (e.g., @I1@), a 4-character tag, and any optional values. It is specifically designed for parsing, validating, or extracting data from GEDCOM files used to exchange family tree information between genealogy software.