Test, validate and match regular expressions
This regular expression matches strings containing a country name followed by its ISO 3166-1 alpha-2, alpha-3, and numeric codes, separated by spaces. It captures the country name, the 2-letter code, the 3-letter code, and the 3-digit numeric code into separate groups. It is ideal for parsing formatted country code data or validating structured inputs in Python.