Test, validate and match regular expressions
Matches US telephone numbers with an optional leading country code '1', an area code either in parentheses or plain digits, followed by 3-digit and 4-digit groups separated by optional spaces or hyphens. Accepts formats like (123) 456-7890, 123-456-7890, 1234567890, and 1 123 456 7890. Commonly used for validating North American phone numbers in forms and user input.