Ian Lurie wrote: > What's the best way to pull content from an HTML page and insert it into a > database? Any elegant solutions out there?
What do you know about the HTML page? Do you know its general structure? Is it written in correct HTML or are closing tags missing all over the place? Usually you can use a combination of looping and regular expressions. But imagine what happens with the following code if the title of the page is missing or is not properly closed. <cfset title = REReplaceNoCase(cfhttp.filecontent, "^.*<title[^]*>(.*)</title[^]*>.*$","\1")> Jochem ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists