Build, test, and debug regular expressions
Matches US phone numbers in a wide variety of formats, with optional country code (+1 or 1), parenthesized area codes like (555), and flexible separators using dashes, dots, or spaces (e.g., +1 (555) 123-4567, 555.123.4567, 5551234567). Area codes and exchange codes reject leading zeros for validity. Also supports 7-digit local numbers such as 555-1234. With global and multiline flags, it's ideal for extracting or validating phone numbers across multiple lines of text.