Parsing multiple string form website into listview.
So guys i need small help here.
i got already this working but its parsing only one string, but in my website the strings are duplicated.
i mean by i got on website like this.
[gq_hostname] => Something random
[gq_hostname] => Something random 2
so in the listview its shows me only the first parsing, not all strings.
so here is the source code:
look like:

but its should be like this

please if someone can help me i will glad.
thanks.
i got already this working but its parsing only one string, but in my website the strings are duplicated.
i mean by i got on website like this.
[gq_hostname] => Something random
[gq_hostname] => Something random 2
so in the listview its shows me only the first parsing, not all strings.
so here is the source code:
Code:
Dim code As String
Using client As New WebClient
code = client.DownloadString("http://127.0.0.1/servers/examples/list.php")
Dim gametype As String = Split(Split(code, "[gq_type] => ")(1), "[hostname]")(0)
Dim servername As String = Split(Split(code, "[gq_hostname] => ")(1), "[gq_mapname]")(0)
Dim map As String = Split(Split(code, "[gq_mapname] => ")(1), "[gq_maxplayers]")(0)
Dim players As String = Split(Split(code, "[gq_numplayers] => ")(1), "[gq_online]")(0)
Dim maxplayers As String = Split(Split(code, "[gq_maxplayers] => ")(1), "[gq_mod]")(0)
Dim ip As String = Split(Split(code, "[gq_address] => ")(1), "[gq_dedicated]")(0)
Dim port As String = Split(Split(code, "[gq_port] => ")(1), "[gq_protocol]")(0)
Dim item = ListView1.Items.Add(Trim(gametype))
For cnt As Integer = 1 To ListView1.Columns.Count
item.SubItems.Add(Trim(servername))
Next
item.SubItems(2).Text = Trim(map)
item.SubItems(3).Text = Trim(players) + "/" + Trim(maxplayers)
End Using
Catch ex As Exception
End Try

but its should be like this

please if someone can help me i will glad.
thanks.


