Test, validate and match regular expressions
Matches Brazilian phone numbers at the start of each line (multiline flag), capturing the 2-digit area code (DDD), an optional space, an optional leading 9 for mobile numbers plus 4 digits, an optional hyphen, and a final 4 digits. It accommodates formats like '11 91234-5678', '11 1234-5678', and '11912345678'. Commonly used for validating or extracting Brazilian landline and mobile phone numbers from multiline text.