Test, validate and match regular expressions
Matches international phone numbers in the format +<country code> (<area code>) <number> with optional spaces, hyphens, and an optional extension segment. Captures the country code (1-4 digits), area code (1-6 digits), main number (up to 15 digits/spaces), and an optional trailing group (up to 10 chars of digits, spaces, or hyphens). Useful for validating and parsing phone numbers like +1 (555) 123-4567 or +44 (20) 7946 0958 in user input forms.