Android Question HTML reader value

Erel

B4X founder
Staff member
Licensed User
Longtime User
B4X:
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.
 
Upvote 0

oem2003

Member
Licensed User
Longtime User
thanks erel but I have to do with webview examine html page to read the specified string is possible with webview
 
Upvote 0
Top