Oppure

Loading
Questo topic e' stato chiuso dal moderatore.
11/03/11 18:46
Vicar
Ciao,
come posso fare a ricerca un testo di inizio tipo <div> e un testo di fine </div> e prendere il contenuto al suo interno?

Grazie per l'aiuto e le risposte :D

Per ora ho fatto questo ma non Matcha niente..
       
Dim Body_RG As New Regex("<body(?s:.*?)</body>", RegexOptions.Multiline)

        For Each M As Match In Body_RG.Matches(HTML)
            Dim Temp As String
            Temp = M.Groups(1).Value
            'Temp = String.Format("{0}", M.Groups(1).Value)

        Next
 Return HTML
Ultima modifica effettuata da Vicar 11/03/11 20:19
aaa
11/03/11 20:37
Vicar
Dopo ben un'ora a sbatterci la testa, Manvbnet mi ha postato il codice corretto:

Dim Body_RG As New Regex("<body(?<Content>(?s:.*?))</body>", RegexOptions.Multiline)
        For Each M As Match In Body_RG.Matches(HTML)
            HTML = M.Groups("Content").Value
        Next
aaa