> -----Original Message----- > From: Keith C. Ivey > Sent: Wednesday, October 15, 2003 8:21 PM > To: Larry Gilson > Subject: RE: [SAtalk] Popcorn, Backhair, and Weeds > > > Larry Gilson <[EMAIL PROTECTED]> wrote: > > > /[>\s]\w{1}<\!-?-?[\w\s\$&]{0,150}\!?-?-?>\w{1}\W/ > > > > Keep adding characters as needed. Additionally, since the > > script tags characters inside '< >' are optional, you could > > reduce the complexity of the rule to: > > > > # I don't think '!' needs escaping - true/false? > > /[>\s]\w{1}<[\w\s\$&!-]{0,150}>\w{1}\W/ > > That's a very significant change, because you're no longer > requiting a '!' after the '<'. The earlier pattern isn't going > to match any tags, just comments and comment-like things (many > of them broken HTML). Without the '!', the chance of false > positives will be much higher (though I'm sure it will also > match more spam).
Oops, my mistake. I thought the original pattern was '<\!?'. So it could be revised to: /[>\s]\w{1}<![\w\s\$&!-]{0,150}>\w{1}\W/ Not withstanding the '\w{1}' can be changed to '\w'. Correct? --Larry ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk