Duvida Regex

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 ]*

href="."

este foi o mais proximo do que quero
a href=&quot;(.*?)&quot;>

Sempre que tenho que pegar algo de um html eu uso o htmlparser (http://htmlparser.sourceforge.net/), acho bem mais confiante.

Agora sobre seu problema de regex, eu não sei.

Falou.

Tente isso:

        String conteudo = ""; //seu texto html
        Pattern pattern = Pattern.compile("href\\=\\\"([^\\\"]+)\\\"");                
        Matcher matcher = pattern.matcher(conteudo);
        while( matcher.find() ) {
            System.out.println( matcher.group(1) );
        }        

[quote=AbelBueno]Tente isso:

String conteudo = ""; //seu texto html Pattern pattern = Pattern.compile("href\\=\\\"([^\\\"]+)\\\""); Matcher matcher = pattern.matcher(conteudo); while( matcher.find() ) { System.out.println( matcher.group(1) ); } [/quote]

vlw, é isso mesmo que precisava