Test, validate and match regular expressions
Matches US-style phone numbers formatted as three digits in parentheses, followed by a hyphen or space, three more digits, another hyphen/whitespace separator, and a final four digits — e.g., (123) 456-7890 or (555)-123 4567. With global and multiline flags, it finds all occurrences across every line of text. Given the French title, it was likely used to detect incorrectly formatted (non-French) phone numbers, since French numbers use a different 10-digit format like 06 12 34 56 78.