Test, validate and match regular expressions
This regex matches variable declaration statements in Java. It captures primitive types, custom class names starting with an uppercase letter, and optional array brackets. It also supports multiple comma-separated variable names in a single declaration, making it useful for syntax highlighting and static code analysis.