Test, validate and match regular expressions
This regex matches phone numbers consisting of an optional international country code (a plus sign followed by exactly two digits), then a 4-digit group and a 6-digit group, with optional whitespace allowed between segments and a word boundary at the end. It captures numbers like '+44 1234 567890' or '1234 567890', making it suitable for extracting 10-digit phone numbers formatted as 4+6 digits. Common use cases include scraping contact details from text, validating input forms, and parsing phone numbers from documents, logs, or CSV data.