Build, test, and debug regular expressions
This regex matches strings consisting of one or more uppercase letters (A-Z) with optional hyphen-separated groups of uppercase letters. It's perfect for validating HTTP headers like 'CONTENT-TYPE' or constant identifiers in kebab-case format. The gm flags enable global matching across multiple lines.