Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003

    Question Unanswered: Parsing HTML with asp

    I need to parse an HTML page and gather information on it and store it into an Access Database. Here is an example of the HTML I need to parse.
    <font face='Arial,Helvetica,Sans Serif' color='#000055' size='2'/>
    <!-- END SMU--><TD align="left"><font face='Arial,Helvetica,Sans Serif' color='#000055' size='2'/><B />&nbsp;
    <!--NNNNNNNNNNNNNNNN-->Thomas,Halle Michele</TD>
    <TD align="center"><font face='Arial,Helvetica,Sans Serif' color='#000055' size='2'/><B /><!--NNNNNNNNNNN-->Enrolled</TD>

    I need the ID number after the <!--NNNNNNNNNNNNNNNN--> and I need
    the student name after the second <!--NNNNNNNNNNNNNNNN-->

    Does anyone have any idea on how to parse this information and store it into the database?

  2. #2
    Join Date
    Feb 2002
    San Francisco, CA

    You need to use regular expressions to match the content inbetween the tags.

    I don't have time to explain how to do this as I am too busy. Just search on google for regular expressions and their use in ASP.

    I use them for similar purposes on my site.

Posting Permissions

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