Hey Barney...thanks for the help! Just to simplify it, what if I just loaded whatever the header is into a string (so hypothetically, I would just want to replace everything up to a variable called headerstring)... would that just be <cfset html = REReplace(html, headerstring, '\1') />
Thanks again so much for your help! John Egbert Milestone Account Management work. 303.317.3397 cell. 720.883.7773 [email protected] http://www.milestonetech.com -----Original Message----- From: John Egbert [mailto:[email protected]] Sent: Wednesday, November 18, 2009 2:44 PM To: cf-talk Subject: Selecting everything in a string up to a point.... Hey all! I'm trying to capture all of the data up to a point in an HTML document. So for instance... there could be the <html><head>blabla bla tags...and these could variate, but on every HTML doc there is a header image. <img src="header.jpg"> or whatever. I need to know how I can write a string command to capture/select everything previous and including the header image (or not including the header image...I really need to know how to do both.) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:328501 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

