Test, validate and match regular expressions
Matches and extracts US-style phone numbers in flexible formats such as +1 (555) 123-4567, 555-123-4567, 555.123.4567, or bare 7-digit numbers like 1234567. Named capture groups (COUNTRY_CODE, AREA_CODE, PART1, PART2) make it easy to pull out each component. The gm flags allow scanning multiple phone numbers across all lines of a document. Useful for form validation, data cleanup, and extracting contact info from text.