Build, test, and debug regular expressions
This regex matches locale identifiers with lowercase letters, an underscore, and uppercase letters. Commonly used to validate locale codes like 'en_US', 'fr_FR', or 'de_DE' in internationalization contexts. The 'u' flag enables UTF-8 mode for proper Unicode handling. Note that the asterisks allow empty language or country segments.