Html code parsing ?

Posted on 2006-05-07
Last Modified: 2010-04-05
I have a html page that i need to parse and get some value from peace of code. I need some one to write me code to get 123456789 from html code.

Code loks like
... <img width="300" alt="Test" height="90" src="/index?get=TEST;Value=123456789"> ...
Question by:65zgtre45rr
    LVL 16

    Accepted Solution

    Hi. I just wrote it now i didnt test ... So i dont know if it works :)
    Drop 2 memos, a button, an editbox and a idhttp on the form.

    Memo1 should be set visible:=False and with a vertical scrollbar.
    Memo2 will hold the results.

    ThePage, Load :String;
    A1: Integer;
    On button event :
      ThePage:=idHttp1.Get(Edit1.Text); <----- Here you will insert the address (http:\\ Dont forget 'http:\\'

    For A1:=0 to  Memo1.Lines.Count-1 do
     If Pos('Value=',Load)<> 0 then    Memo2.Lines.Add(Copy(Load,Pos('Value=',Load)+6,9));

    Hope this works :P

    Author Comment

    It works i only need to change a liittle bit :)

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Join & Write a Comment

    Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
    Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now