Skip to content

Instantly share code, notes, and snippets.

@hightemp
Last active October 2, 2015 09:56
Show Gist options
  • Save hightemp/10638739 to your computer and use it in GitHub Desktop.
Save hightemp/10638739 to your computer and use it in GitHub Desktop.

Get all href sources from "a" tags exlude containing mailto links

(<a[^>]*href\s*=\s*["'])((?!mailto:|https?:|#)[^"']*|http:\/\/(www\.)*sitename[^"']*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment