Test, validate and match regular expressions
Matches 10-digit US phone numbers with optional parentheses around the area code and optional separators (space, dot, or hyphen) between groups. Useful for validating phone inputs in forms or extracting phone numbers from text where standard formatting is expected. The anchors ensure the entire string is a valid number.