Ciao a tutti
Ho qualche difficoltà a manipolare un testo html sono riuscito a togliere tutto quello che non mi serve tranne gli spazi
codice:Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load Dim testo As String Dim numeri As String Dim URL As String URL = "http://www.lottomaticaitalia.it/home/index.html" Dim objScaricaURL As New ScaricaURL objScaricaURL.SetURL(URL) testo = System.Text.RegularExpressions.Regex.Replace(objScaricaURL.Scarica, "<[^>]*>", "") numeri = testo.Substring(7375, 1820) numeri = numeri.Replace(" ", "") Me.TextBox1.Text = numeri End Sub

Rispondi quotando