Test, validate and match regular expressions
Matches Ukrainian phone numbers with an optional country code prefix (+380, 380, 38, or 8). Validates the 9-digit national number (0XX operator code followed by 7 digits) while tolerating flexible separators such as spaces, hyphens, and parentheses, e.g., +380 67 123-45-67, (050)1234567, or 0671234567. Capture groups extract the country code and individual number segments, making it useful for form validation and normalizing phone input. The gm flags allow matching multiple entries across lines.