Skip to content

Instantly share code, notes, and snippets.

@ar7n
Created February 4, 2016 13:30
Show Gist options
  • Save ar7n/dcfc7bb5f2db4f3e4982 to your computer and use it in GitHub Desktop.
Save ar7n/dcfc7bb5f2db4f3e4982 to your computer and use it in GitHub Desktop.
Regexps
# Email
/^(([a-zA-Z]|[0-9])|([-]|[_]|[.]))+[@](([a-zA-Z0-9])|([-])){2,63}[.](([a-zA-Z0-9]){2,63})+$/gi;
# Russian phone number
/^((8|\+7)[\- ]?)?(\(?\d{3}\)?[\- ]?)?[\d\- ]{7,10}$/g;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment