Test, validate and match regular expressions
Matches C/C++ struct, union, and enum definitions, optionally preceded by a typedef keyword. Captures named groups for the definition type, the structure name, the body fields (with support for one level of nested braces), and any trailing typedef alias name before the semicolon. Useful for parsing C header files, extracting type definitions for documentation generation, or building code analysis tooling.