Test, validate and match regular expressions
This regex matches Brazilian phone numbers, including optional country code (+55), area code with optional parenthesis, and a leading 9 for mobile numbers. It handles separators like spaces, dots, and hyphens, and uses lookarounds to ensure the number is not part of a larger digit sequence. Common use cases include validating or extracting phone numbers from Brazilian text data.