Test, validate and match regular expressions
This regular expression is designed to parse locale codes by separating the language prefix from the country code. The first capturing group matches zero or more lowercase letters followed by an underscore, representing the language. The second capturing group extracts the two-letter uppercase country code. It is commonly used in internationalization (i18n) to extract or validate locale identifiers like "en_US" or "fr_CA".