Dim s As String = $"<Span id = "fsl"> <a class="_Gs"
href="//www.google.it/intl/it/ads/?fg=1"> Advertising </a>
<a class = "_ Gs" href = "// company www.google.it/services/?fg=1">Soluzioni </a>
<a class =" _ Gs "href =" // www.google.it/intl/it/about.html ? fg = 1 "> </a> Information </ span>"$
Dim m As Matcher = Regex.Matcher2($"<span\s+id\s*=\s*\"([^"]+)"$, regex.CASE_INSENSITIVE, s)
If m.Find Then
Log(m.Group(1))
End If
Another option is to use JTidy to covert the html to an XML document and then parse it.