Test, validate and match regular expressions
Matches phone numbers in a flexible format: an optional country code (up to 2 digits with optional leading +), optional non-digit separator, optional parentheses around a 3-digit area code, then a 3-digit exchange, optional separator, and a 4-digit subscriber number. Commonly used to validate US/Canada phone numbers that may include spaces, dashes, dots, or no separators.