Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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