Test, validate and match regular expressions
Matches US telephone numbers with an optional leading country code 1, an area code either as plain digits or wrapped in parentheses, and optional separators (hyphen, whitespace, or a literal pipe from the character class) between the 3-3-4 digit groups. Accepts formats like 555-555-5555, (555) 555-5555, and 1 555 555 5555. Commonly used for validating North American phone numbers in web forms.