Test, validate and match regular expressions
This .NET regex matches C-style variable declaration statements like `int x, y[10];`. It captures primitive data types (such as int, long, float, double, char) and valid identifiers into distinct named groups (`type` and `id`). Additionally, it features named `error` groups to capture invalid types or syntax errors within the declarations, making it highly useful for basic code parsers or linters.