Skip to content

Instantly share code, notes, and snippets.

@axelav
Created September 11, 2015 20:38
Show Gist options
  • Save axelav/c7394a9a4805717ae4ef to your computer and use it in GitHub Desktop.
Save axelav/c7394a9a4805717ae4ef to your computer and use it in GitHub Desktop.
url regexp
var urlRegExp = /^https?:\/\/[a-zA-Z0-9-\.]+\.[a-zA-Z]{2,4}\/?([^\s<>"\,\{\}\\|\^`]+)?$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment