Skip to content

Instantly share code, notes, and snippets.

@th0th
Created August 25, 2018 01:01
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 th0th/29bd4f9f9abbb0f40ed8ecfab4d9606f to your computer and use it in GitHub Desktop.
Save th0th/29bd4f9f9abbb0f40ed8ecfab4d9606f to your computer and use it in GitHub Desktop.
domain regex
^(?!:\/\/)([a-zA-Z0-9-_]+\.)*[a-zA-Z0-9][a-zA-Z0-9-_]+\.[a-zA-Z]{2,11}?$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment