Results 1 to 2 of 2

Thread: Interesting Search Question....

  1. #1

    Thread Starter
    Addicted Member theonetrueace's Avatar
    Join Date
    Jan 2002
    Location
    South Alabama
    Posts
    196

    Interesting Search Question....

    ok heres up i want to do...i want to search a webpage for a link....heres the text im talking about ... (<img src="http://somewebsite.com/i/DTI5fOdZFellZUGo0cWdP8InhxoC.7v3oqfeuak2_3Ky2rC7AawJ.jpg")


    the thing is, the somewebsite.com/i/ is there everytime but the DTI5fOdZFellZUGo0cWdP8InhxoC.7v3oqfeuak2_3Ky2rC7AawJ is generated on the fly....so wut i want to do, is first of all search for the link....ive alrdy got this....

    Code:
        Private Sub TB_Get_Word_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TB_Get_Word.Click
            Dim GetWordPageStream As New System.Net.WebClient()
            Dim StreamReader(999) As Byte
            Dim GetWordPage As String
            Dim NewWordUrl As String
            StreamReader = GetWordPageStream.DownloadData("www.somewebsite.com/index.html")
            GetWordPage &= System.Text.Encoding.UTF8.GetString(StreamReader)
            TextBox1.Text = GetWordPage
        End Sub
    so my webpage is already in the textbox....now i need to search for the unknown text between <img src="http://somewebsite.com/i/ and .jpg"

    can any1 help?

    AcE

  2. #2
    Frenzied Member
    Join Date
    Oct 2002
    Location
    Gammapolis
    Posts
    1,474
    Use Regular Expressions (regex), but dont ask me how, cause i have little experience with that classes, but I know thats what you looking for.
    'Heading for the automatic overload'
    Marillion, Brave, The Great Escape, 1994

    'How will WE stand the FIRE TOMORROW?'
    Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width