Title |
Test
Find
Brazilian Phone (mobile or not)
|
Expression |
^((\(([1-9]{2})\))(\s)?(\.)?(\-)?([0-9]{0,1})?([0-9]{4})(\s)?(\.)?(\-)?([0-9]{4})|(([1-9]{2}))(\s)?(\.)?(\-)?([0-9]{0,1})?([0-9]{4})(\s)?(\.)?(\-)?([0-9]{4}))$ |
Description |
This expression allows Brazilian phone numbers as they have 4 or 5 prefix digits and with/without regional code. Not perfect but simplifies. Also allows space or dot or hyphen as optional separator in the number as parenthesis in regional code. |
Matches |
(13)98145-5566 | (11)8854-3236 | (11) 8854-3236 | (11).8854.3236 | (11)-8854-3236 | 1177854425 | 11.5642-3115 |
Non-Matches |
(13654854 | 01 9854-4253 | 11.456758-525 |
Author |
Rating:
José Luís de Oliveira Santos
|
Source |
|
Your Rating |
|