Les Mizzell wrote:
> Working on a page that outputs headlines and copy from several RSS News 
> Feeds.
> 
> I need to do some filtering though, as the page is target towards kids 
> and the feeds can sometimes contain some iffy stuff.
> 
> So, I've got a list of words "rejectLIST" and if the body copy contains 
> any of the words from "rejectLIST", then that entry should be skipped.
> 
> In sorta Coldfusion/English
> 
> 
> <If rss.bodycopy does not contain anything in #rejectLIST#>
>    Display this feed entry
> </cfif>

<cfset rejectRE = "(" & ListChangeDelims(rejectList, "|") & ")">
<cfif NOT REFindNoCase(rejectRegEx, rss.bodycopy)>
   Display this feed entry
</cfif>

Jochem

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201276
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to