Thanks Darryl 

Came through loud and clear that time :)


On Wed, 6 Oct 2004 16:06:50 +1000, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> How's this:
> 
> Hi Bec,
> 
> The easiest method of doing this would be to create a database table to
> store the list of profanities, and then to loop over the records in this
> table whenever somebody creates a post:
> 
> E.g.
> 
> <cfset lstProfanities = "">
> 
> <cfloop query="qProfanities">
> 
>        <cfif form.message CONTAINS qProfanities.word>
>                <cfset tmp = ListAppend(lstProfanities,qProfanities.word)>
>        </cfif>
> 
> </cfloop>
> 
> You could then do something else with the list of words found, or count
> the number of times a word exists, or even highlight the word.
> 
> You could also use the Find() function instead of "CONTAINS" like so:
> 
> <cfif Find(qProfanities.word,form.message)>
> 
> and use the result to store the location in the text where the profanity
> happened.
> 
> ... and, you could use Regular Expressions to remove the word or replace
> it with asterixes or something...
> 
> Darryl
> 
> 
> 
> ---
> You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> Aussie Macromedia Developers: http://lists.daemon.com.au/
>

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to