Skip to content

Instantly share code, notes, and snippets.

@Luis-Palacios
Created December 10, 2015 14:21
Show Gist options
  • Save Luis-Palacios/ebe5afda4fd57cb9bd71 to your computer and use it in GitHub Desktop.
Save Luis-Palacios/ebe5afda4fd57cb9bd71 to your computer and use it in GitHub Desktop.
Regex Url Validator (Escaped)
/(((https?:\/\/+)(?:www\.)[A-Za-z0-9.-]+\.+.{2,4}|(?:^www\.)[A-Za-z0-9.-]+\.+.{2,4})((?:\/[\+~%\/.\w-_]*)?(\?+(?:[-\+=&;%@.\w_]*))?(#+(?:[\w]*))?)?)$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment