C Cor Active Member Licensed User Longtime User Jan 21, 2011 #1 What is the best way to get href and title from next html file? I want returned /Aarle-rixtel Voetbalvereniging Aarle-rixtel /Alphen-nb Voetbalvereniging Alphen nb B4X: <img src="/bullet.gif" align="absmiddle"> <a href="/Aarle-rixtel" title="Voetbalvereniging Aarle-rixtel">Aarle-rixtel</a> <font class="aantal">[1]</font><br /> <img src="/bullet.gif" align="absmiddle"> <a href="/Alphen-nb" title="Voetbalvereniging Alphen nb">Alphen nb</a> <font class="aantal">[1]</font><br />
What is the best way to get href and title from next html file? I want returned /Aarle-rixtel Voetbalvereniging Aarle-rixtel /Alphen-nb Voetbalvereniging Alphen nb B4X: <img src="/bullet.gif" align="absmiddle"> <a href="/Aarle-rixtel" title="Voetbalvereniging Aarle-rixtel">Aarle-rixtel</a> <font class="aantal">[1]</font><br /> <img src="/bullet.gif" align="absmiddle"> <a href="/Alphen-nb" title="Voetbalvereniging Alphen nb">Alphen nb</a> <font class="aantal">[1]</font><br />
Erel B4X founder Staff member Licensed User Longtime User Jan 23, 2011 #2 Something like: B4X: Dim matcher1 As Matcher matcher1 = Regex.Matcher("a href=\q([^q]+)\q\s+title=\q([^q]+)\q".Replace("q", QUOTE)) Do While matcher1.Find Log("href = " & matcher1.Group(1)) Log("title = " & matcher1.Group(2)) Loop Upvote 0
Something like: B4X: Dim matcher1 As Matcher matcher1 = Regex.Matcher("a href=\q([^q]+)\q\s+title=\q([^q]+)\q".Replace("q", QUOTE)) Do While matcher1.Find Log("href = " & matcher1.Group(1)) Log("title = " & matcher1.Group(2)) Loop
Z ZJP Active Member Licensed User Longtime User Jan 23, 2011 #3 Flickr-viewer by....Erel. A very good example. http://www.b4x.com/forum/basic4android-getting-started-tutorials/6646-flickr-viewer.html JP Upvote 0
Flickr-viewer by....Erel. A very good example. http://www.b4x.com/forum/basic4android-getting-started-tutorials/6646-flickr-viewer.html JP