Skip to content

Instantly share code, notes, and snippets.

@morales2k
Created September 13, 2016 22:12
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 morales2k/042cc6c5c37504573ec5d511e483a1c6 to your computer and use it in GitHub Desktop.
Save morales2k/042cc6c5c37504573ec5d511e483a1c6 to your computer and use it in GitHub Desktop.
Regex to match urls
^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,12})([\/\w-\.]*)?\??([=\w+&%\s-]?)*$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment