you can use Find() and Mid() to extract specific code.

assume text.txt contains the string "this is my dog and he likes to eat
cats".

<!----- ***** SNIPPET ***** ----->
<CFHTTP URL="text.txt" METHOD="GET">

<CFSET string = #CFHTTP.FileContent#>

<CFSET start = #Find("eat", string)# + 4>
<CFSET end = #Find("cats", string, start)# - #start#>
<CFSET substring = #Mid(string, start, end)#>

<CFOUTPUT>#substring#</CFOUTPUT>
<!----- ***** /SNIPPET ***** ----->

that will extract "cats" from the string.

you might want to read up on Find(), FindNoCase(), and Mid().

-----Original Message-----
From: Alii Design [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 7:23 AM
To: CF-Talk
Subject: CFHTTP??


How do I display a specific area of a CFHTTP request if I know where I want
the beginning and end to be?

Rich
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to