Formatted mobile
- Input
- (11) 99999-9999
- Expected output
- match
Area code + ninth digit.
brazilian phone regex
Brazilian phone numbers are a strong programmatic case because they have local intent, their own format and an existing tool preset.
Available presetThe Regex Builder below already loads the “Phone (BR)” preset, with pattern, flags and samples ready to test.
Area code + ninth digit.
Useful for normalized inputs.
No. Regex validates format. Existence requires an external service or SMS/WhatsApp confirmation.
Yes, the ninth digit is optional in the current preset.
regexBuilder.library.email.description
/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/gmregexBuilder.library.phone-br.description
/^\(?\d{2}\)?\s?9?\d{4}-?\d{4}$/gmregexBuilder.library.url.description
/^https?:\/\/[\w.-]+(?:\:\d+)?(?:\/[\w\-._~:/?#\[\]@!$&'()*+,;=%]*)?$/gmregexBuilder.library.hex-color.description
/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/gmregexBuilder.library.date-iso.description
/^\d{4}-\d{2}-\d{2}$/gmregexBuilder.library.extract-numbers.description
/\d+(?:[.,]\d+)?/gregexBuilder.library.html-tags.description
/<\/?[a-zA-Z][^>]*>/gregexBuilder.library.uuid.description
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/gmregexBuilder.privacyNote