Hello all. I'm here again asking stupid questions.
I don't have really get this but i ask again but i try explain all better.
Here is a website link and i want catch string from here.
Look page's source code and find first what starts <td> someword </td>
I use this code for catch word from page.
Visual Basic Express 2008 Code:
Imports System.Text.RegularExpressions.Regex
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim WClient As New Net.WebClient
Dim WSearch As String
Dim RX As New System.Text.RegularExpressions.Regex("(?<=<td>).+?(?=</td>)")
WSearch = WClient.DownloadString("http://itemdb-rs.runescape.com/results.ws?query=Tarromin+seed&price=all&members=")
MsgBox(RX.Match(WSearch).Value)
End Sub
End Class
First td is this:
PHP Code:
<td><img src="http://itemdb-rs.runescape.com/2717_obj_sprite.gif?id=5293" alt="Tarromin seed"></td>
So it says me:
PHP Code:
<img src="http://itemdb-rs.runescape.com/2717_obj_sprite.gif?id=5293" alt="Tarromin seed">
Why it can not say market price word "19"
I want it to say item price.
Under this what it says me is this.
PHP Code:
<td><img src="http://itemdb-rs.runescape.com/2717_obj_sprite.gif?id=5293" alt="Tarromin seed"></td>
<td><a href="http://itemdb-rs.runescape.com/Tarromin_seed/viewitem.ws?obj=5293"> Tarromin seed</a></td>
<td>19</td>
Why it cant say this FROM here?
Can someone help me.
Thank you for answers.