Build, test, and debug regular expressions
Matches North American 10-digit phone numbers with a 3-digit area code, a 3-digit exchange code (first digit 2-9 per NANP rules), and a 4-digit line number. The area code may optionally be wrapped in parentheses, and hyphens or spaces serve as separators, with the separator between exchange and line number being required. Valid examples include (789) 456-1230, 789-456-1230, and 789 456 1230. Typically used for validating phone input in contact or registration forms.