Created
July 24, 2013 21:27
-
-
Save ourmaninamsterdam/6074735 to your computer and use it in GitHub Desktop.
RegEx for filtering href attr
This file contains hidden or 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-z]+|)+(href=\".+?") | |
Returns href attr from... | |
<a href="http://www.google.com">Google</a> | |
<a class="myclass" href="http://www.bbc.co.uk">BBC</a> | |
<a id="myid" href="http://www.yahoo.com" class="myclass">Yahoo</a> | |
<div><a href="http://www.google.com">Google</a></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment