I have a string that contains an <a>
tag with href
attributes. I need to find the regex which matches only value of hrefs.
<a href="http://value.com">VALUE HERE</a> <-- string to find
<a href="www.twittor.com">TWITTOR VALUE HERE</a> <-- another string to find
I would like to get exact http://value.com
or www.twittor.com
. I searched the site for an answer, many solutions were found, but they all match additional information, not the value itself.
Like this one: Regex to find Href value matches href="http://value.com"
and so the others.