Skip to content

Instantly share code, notes, and snippets.

@jlittlejohn
Created June 11, 2013 01:20
Show Gist options
  • Save jlittlejohn/5753884 to your computer and use it in GitHub Desktop.
Save jlittlejohn/5753884 to your computer and use it in GitHub Desktop.
RegEx: Valid Domain
^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment