Skip to content

Instantly share code, notes, and snippets.

@ravpacheco
Last active November 28, 2018 01:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravpacheco/f27d8ac05c3702028e46fc27af5c350c to your computer and use it in GitHub Desktop.
Save ravpacheco/f27d8ac05c3702028e46fc27af5c350c to your computer and use it in GitHub Desktop.
Some useful regex patterns for BLiP

Validade Phone Number

^[1-9]{2}-?\s?[2-9][0-9]{7,8}$

Accept formats like:

  • XX-999999999
  • XX-99999999
  • XX 999999999
  • XX 99999999

where XX is DDD.


Validade Email

^([\w\.\-]+)@([\w\-]+)((\.(\w){2,})+)$

Accept formats like:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment