Build, test, and debug regular expressions
This regex matches the standard header declaration of a JSGF (Java Speech Grammar Format) file. It extracts the grammar's version, character encoding, and locale using specific named capture groups. Designed for use with the global and multiline flags, it is ideal for validating JSGF headers or parsing metadata from speech recognition grammar definitions.