Build, test, and debug regular expressions
This regular expression matches US-style 10-digit phone numbers, allowing an optional opening parenthesis before the area code and various separators (hyphens, spaces, dots, or closing parentheses) between groups. It is useful for extracting or validating phone numbers from text where formatting may vary. The pattern captures three-digit area code, exchange, and line number groups.