I have a string extracted from a div and stored in variable "str". I now need to extract the <a href="blah">...</a> subset of it.
str = '<div id="xyz"><p>This is a paragraph</p><a href="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=brd&FlightID=2997227&Page=&PluID=0&Pos=9088" target="_blank"><img src="http://bs.serving-sys.com/BurstingPipe/adServer.bs?cn=bsr&FlightID=2997227&Page=&PluID=0&Pos=9088" border=0 width=300 height=250></a></div>';
Thanks in advance for any help with this.