Skip to content

Instantly share code, notes, and snippets.

@seabornlee
Created May 4, 2014 13:27
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 seabornlee/11516619 to your computer and use it in GitHub Desktop.
Save seabornlee/11516619 to your computer and use it in GitHub Desktop.
match ip or domain name
^((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]\d)|\d)(\.((25[0-5])|(2[0-4]\d)|(1\d\d)|([1-9]\d)|\d)){3}$|^([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