>> I can use some help. I need a RegEx to determine if there are >> three or more invalid HTML tags on a page.
> First define what you mean by invalid HTML tags. Open tags > without closing tags? Tags without a closing bracket? tags > that are not part of the HTML syntax? I suppose I should have been more precise. What I am trying to do is extract email messages from a POP account for archiving and throw away those that are obviously spam. The main trick I see in the spam it gets is to scatter non-html tags throughout the text like so: Ma<WS>k<QW>e Mo<!Vs>ne<De!>y No<sd>w When displayed in an HTML reader it says "Make Money Now" but I can't really filter on the phrase. The logic I was looking for was if the there are more than three pseudo tags on in a page that do not conform to HTML tags then it's spam. The three count is to account for messages where people put emotion tags in messages like this: <smile> Best regards, Dennis Powers UXB Internet - A Web Design and Hosting Company tel: (203)879-2844 fax: (203)879-6254 http://www.uxbinternet.com/ http://dennis.uxb.net/ ===================================================================== This e-mail message has been scanned for Viruses by the UXB Internet email gateway system and the Kaspersky Labs antivirus scanning engine ===================================================================== ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

