Jochem Hi - try searching for "right|left|context" w/ any number of words,
see the result?
Thanks alot for helping, this sure looks like the right way...
----- Original Message -----
From: "Jochem van Dieten" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 1:26 AM
Subject: Re: Experts Only! - Summarizing Results
> Jason Davis wrote:
> > Jochem,
> >
> > Thanks for the code, there are still problems though:
> >
> > 1. I need the "summary" to be no more then 2-3 sentences,
> > currently there is no upper limit for the output summary,
> > as your code stopps when he finds all words.
>
> The upper limit is controlled by the words variable.
>
>
> > 2. I'm receiving a Bad regular expression error on this line:
> > temp = REReplaceNoCase(Product_description,expression,"\1")
> > Do you know what can cause this?
>
>
> >> <cfset expression =
> >>
> >>
> >
"^.*(([^[:space:]]*[[:space:]]+){#words#}(#i#)([[:space:]]+[^[:space:]]*){#w
> > ords#}).*">
>
> Looks like something with wrapping. It works for me. For an example, see
> http://spike.oli.tudelft.nl/jochemd/keycontext.cfm
> Fill out a keyword and a number and see what happens.
>
> Jochem
>
______________________________________________________________________
Why Share?
Dedicated Win 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=coldfusionc
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