4 ms·
Good question. Unless there's some table valid phone number patterns corresponding to various regions, the best you can do might be to check for dashes, digits
by maw 17y ago
Good question. Unless there's some table valid phone number patterns corresponding to various regions, the best you can do might be to check for dashes, digits, dots, and parenthesis. Maybe also check that it doesn't exceed some arbitrary but generous length, too. (Ugly, I know.)