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
______________________________________________________________________
Dedicated Windows 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=coldfusiona
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