Skip to content

Instantly share code, notes, and snippets.

@arcticmouse
Created November 22, 2017 17:29
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 arcticmouse/0f30f88cf5f32a4e9755c24c7ef3ec8a to your computer and use it in GitHub Desktop.
Save arcticmouse/0f30f88cf5f32a4e9755c24c7ef3ec8a to your computer and use it in GitHub Desktop.
regex(php) match url (ftp/http/https)
(((ftp|https?):\/\/)(www\.)?|www\.)([\da-z-_\.]+)([a-z\.]{2,7})([\/\w\.-_\?\&]*)*\/?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment