Skip to main content
Inspiring
October 26, 2010
Question

Need to copy Data from a specific Html Tag

  • October 26, 2010
  • 1 reply
  • 319 views

Hello,

I am trying to use CF to access website and capture data from a specific tag to the end of that tag and store same in a csv file or database.

The tag based search of an open file is where I am not able to get any head way. Any one has done this?

    This topic has been closed for replies.

    1 reply

    Community Expert
    October 26, 2010

    You'll need to use a regular expression for that. CF supports regular expressions with the REFind, REFindNoCase and REReplace functions. Here's an example of using regular expressions to capture the value within an HTML tag:

    http://www.javamex.com/tutorials/regular_expressions/example_scraping_html.shtml

    It's in Java, but the syntax for regular expressions is the same in CF.

    Dave Watts, CTO, Fig Leaf Software

    http://www.figleaf.com/

    http://training.figleaf.com/

    Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on

    GSA Schedule, and provides the highest caliber vendor-authorized

    instruction at our training centers, online, or onsite.

    Read this before you post:

    http://forums.adobe.com/thread/607238

    Dave Watts, Eidolon LLC