On Tue, 11 Nov 2003, Yackley, Matt wrote: > Scott, > This would probably be a little better & cleaner looking: > body LOCAL_SWEARWORD /\b(?:word1|word2|word3|word4)\b/i
And in case anyone else unfamiliar with regex is wondering about that question mark followed by a colon - it is a special code that tells the regex not to save the 'back-reference' variable it would normally create containing whatever matched that portion of the regex in parentheses. It saves a few processing cycles each time you do this. In a large collection of tests, it can be significant. - Charles ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk