Build, test, and debug regular expressions
Matches North American phone numbers in flexible formats: optional leading 1 or international prefix (+1 to +3 digits), area code with or without parentheses, 3-3-4 digit groups separated by spaces or hyphens, and an optional extension (ext, Ext, x, X with optional : or . separator). Handles formats like (555) 123-4567, 555-123-4567, 1 555 123 4567, and +1 555-123-4567 ext 42. Commonly used for validating contact forms, extracting numbers from documents, or parsing user input. The global/multiline flags allow finding all matches across multiple lines.