Skip to content

Instantly share code, notes, and snippets.

@m4ttbrock
Created June 24, 2016 20:40
Show Gist options
  • Save m4ttbrock/b271bd98abb1ffaafee78a60c050c2ae to your computer and use it in GitHub Desktop.
Save m4ttbrock/b271bd98abb1ffaafee78a60c050c2ae to your computer and use it in GitHub Desktop.
Any href without (target | ng-click | ng-link), but also has ( href | ng-href )
<a(?=\s|>)(?!(?:[^>=]|=(['"])(?:(?!\1).)*\1)*?\s(target=['"]|ng-click=['"]|ng-link=['"]))(?=(?:[^>=]|=(['"])(?:(?=\1).)*\1)*?\s(href=['"]|ng-href=['"]))[^>]*>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment