Thanks!

-----Original Message-----
From: Raymond Camden [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, September 11, 2002 10:44 AM
To: CF-Talk
Subject: RE: Search string pasing?


You can treat a string as a set of words by using it as a list with
space being the delimiter.

<cfset string = "This is the end.">

<cfloop index="word" list="#string#" delimiters=" ">
        <cfoutput>word = #word#<br></cfoutput>
</cfloop>

It would be a bit nicer to use " .?!" as a set of delimiters. This would
then catch:

"This is the end.I don't know how to type"

=======================================================================
Raymond Camden, ColdFusion Jedi Master for Hire

Email    : [EMAIL PROTECTED]
Yahoo IM : cfjedimaster

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Kris Pilles [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 11, 2002 10:37 AM
> To: CF-Talk
> Subject: Search string pasing?
> 
> 
> Does anyone have an example sof parsing strings with CF?
> 
> I need to "enhance"our search engine so that we can control the search

> cresults and in order to do this, I need to break the search string 
> down into words so I can search for keyword matches by the entire
> string then
> by each word...
> 
> 
> Any ideas..
> 
> Thanks KP
> 
> Kris Pilles
> Website Manager
> Western Suffolk BOCES
> 507 Deer Park Rd., Building C
> Phone: 631-549-4900 x 267
> E-mail: [EMAIL PROTECTED]
> 
> 
> 

______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to