Build, test, and debug regular expressions
This regex matches a 10-digit phone number formatted with hyphens, specifically in the pattern XXX-XXX-XXXX where each X is a digit. It is commonly used to validate North American phone numbers in forms, data entry, and text processing, ensuring the exact hyphen placement and digit count.