Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save FelipeTrebino/1c5f6d96769a57c8f1a6b1268133395c to your computer and use it in GitHub Desktop.
Save FelipeTrebino/1c5f6d96769a57c8f1a6b1268133395c to your computer and use it in GitHub Desktop.
Regex para validação de celulares do Brasil
^((1[1|2|3|4|5|6|7|8|9])|(2[1|2|4])|(3[1|2|3|4|5|7|8])|(4[1|2|3|4|5|6])|(5[1|3|4|5])|(6[1|2|3|4|5|6|7])|(7[1|3|4|5|7|9])|(8[1|2|3|5|6|7|8|9])|(9[1|2|3|4|5|6|7|8|9]))(9)[1-9]{8}$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment