Skip to content

Instantly share code, notes, and snippets.

@juizmill
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save juizmill/11391809 to your computer and use it in GitHub Desktop.

Select an option

Save juizmill/11391809 to your computer and use it in GitHub Desktop.
Regex formato de telefone 8 ou 9 números
^\(((\d{2})|(\d{3}))\)\s(\d{5}|\d{4})-\d{4}$
Exemplos:
(99) 9999-9999
ou
(99) 99999-9999
ou
(999) 9999-9999
ou
(999) 99999-9999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment