Slots regular expression matching where it is not configured

I'm using this regex:
"^(?:+?55[ ]?)?(?:(?[1-9][0-9])?[ ]?)9?[ ]?\d{4}-?\d{4}$"
to validate phone numbers from brazil, but this is accepting others formats that are not allowed in.
Exemple: 5554-323233

Captura de tela 2024-08-15 100306


This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.