Created
June 24, 2016 20:09
-
-
Save m4ttbrock/1b7cd3c457d0fe78131c06d2e508daa6 to your computer and use it in GitHub Desktop.
Select all anchor tags without target attribute
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a(?=\s|>)(?!(?:[^>=]|=(['"])(?:(?!\1).)*\1)*?\starget=['"])[^>]*>(.|\n|\r)*?<\/a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment