Skip to content

Instantly share code, notes, and snippets.

@jurikern
Created September 7, 2012 10:31
Show Gist options
  • Save jurikern/3664983 to your computer and use it in GitHub Desktop.
Save jurikern/3664983 to your computer and use it in GitHub Desktop.
Regex brilliant collection
/^([0-9]{3}([0-9]{3})?|[0-9]{4})$/ -> 111. 1111, 111111
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment