http://forum.html.it/forum/register....287&i=84824456

Vorrei estrarre tutti gli href="xxxxxxxxxx" che ci sono in un testo..

Come posso scriverla la regex? ho provato ma niente.

"<a\s*(.*)\>(.*)</a>"

Cosi riesco a fare uscire diciamo l'href, ma come faccio ad esempio per includere anche il tag h1?

Esempio testo:

<h1><a href="http://www.repubblica.it/politica/2012/12/04/news/bersani_a_tripoli-48037691/" target="_self" title="">Legge elettorale, a un passo dalla rottura
Il governo auspica una riforma</a></h1>