I have a tag <a href="#caveat1"><span style="color: rgb(255,255,255);">[1]</span></a>
I am using this regex <a href="(.*)">(.*)<\/a>
But its not parsing the url only. Its also parsing <span style="color: rgb(255,255,255);">[1]</span>
How can i get only the url from a tags?