Skip to content

Instantly share code, notes, and snippets.

@sammdec
Created April 14, 2014 13:03
Show Gist options
  • Save sammdec/10645922 to your computer and use it in GitHub Desktop.
Save sammdec/10645922 to your computer and use it in GitHub Desktop.
Link Detecttion Regex
var regEx = /(\b(https?|ftp|file):\/\/[\-A-Z0-9+&@#\/%?=~_|!:,.;]*[\-A-Z0-9+&@#\/%=~_|])/img;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment