> REReplaceNoCase(threads.message, "(#query#)","<SPAN
> CLASS='highlight'>1</SPAN>", "ALL");

> Is there a way to make the REReplaceNoCase function search
> through a message
> and replace any word that appears in a certain array rather than
> replacing a
> single word?

I think you want to take #query# and replace the spaces with "|" -- you can
use ListChangeDelims for this. So your regexp should look like
"(cat|tree|dog|mouse)".

Regards,
Matthew Walker
Electric Sheep Web

------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message 
with 'unsubscribe' in the body to [EMAIL PROTECTED]

Reply via email to