Estou tentando pegar somente o conteudo do href
Testei varias formas mas não estou conseguindo.
Ex. estou lendo uma pagina da web e salvando o conteudo num stringbuinder
[code]
<!DOCTYPE HTML PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
<html xml:lang=“en” xmlns=“http://www.w3.org/1999/xhtml” lang=“en”><head>
<meta http-equiv=“content-type” content=“text/html; charset=UTF-8”>
<meta name=“ROBOTS” content=“NOINDEX,NOFOLLOW”>
<title>CADASTRE-SE ABAIXO - PARA CONTINUAR!</title>
<link rel=“stylesheet” href=“http://www.freetela.com/link/files/style1.css” type=“text/css” />
<link rel=“stylesheet” href=“http://www.freetela.com/link/files/style2.css” type=“text/css” />
<link rel=“stylesheet” href=“http://www.freetela.com/link/files/style3.css” type=“text/css” />
<!–[if IE]><link rel=“stylesheet” href=“http://www.yesdicas.net/link/files/ie.css” type=“text/css” /><![endif]–>
<div id=“link0” style=“display:block”>
</div>
<div id=“link” style=“display:none”>
<span class=“left”><span class=“right”><span class=“center center_auto”><span class=“icon icon_download”></span></span></span></span>
</div> [/code]
E gostaria de pegar somente os links
http://www.megaupload.com/?d=98FJMA4T
…
…
http://www.yesdicas.net/link/files/ie.css
http://www.freetela.com/link/files/style1.css
2 das minhas tentativas
(?=(href="))[^"]*
[0-9]"[ >][\w ]*
este foi o mais proximo do que quero
a href="(.*?)">