Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

parsing a paragraph from files

Status
Not open for further replies.

olmos

Technical User
Oct 25, 2000
135
US
I need to get a certain paragraph out from a list of files which I do a cfloop over.

The paragraph I need begins with the word "This" and the end of
the paragraph is followed by a row of asterisks.

Here is an example of what one of the files may contain,

....text...

This file contains .....
paragraph ends.

*************************


So far I have


<cfloop index="file" list="filelist" >

<cffile action="READ" file="#filedir#\#dirQuery.name#" variable="filedata">

<cfloop index="single_data" list="#filedata#" delimiters="#chr(9)#" >

#filedata#


</cfloop>
</cfloop>


this gives me back everything in each file, but I need to parse out the paragraph described above.
I will then insert it into a table .
How do I parse it out ?

Thanks,
olmos.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top