Test, validate and match regular expressions
Matches North American (NANP) 10-digit phone numbers in formats like (555) 123-4567, 555.123.4567, or 5551234567. The area code must start with 2-9 (excluding invalid 0/1 prefixes per NANP rules), with optional parentheses and separators (dash, dot, or space). Captures three groups: area code, exchange prefix, and line number for easy parsing. Commonly used for form validation and extracting phone numbers from text.