U may search any perl, python documentation for it. or just find any regexp tutorial for newbies in i-net. There also is a document called Regular_Expressions.htm in spamfilter's distribution package with some explanations on regexps.
As for using it in spamfilter, u may use regexps in any black/white lists where it's allowed (it's written in the top of each black/white list in comments), except keywords blacklist.
As for it's syntax, every single LINE of text in every single local list that is currently able to support wildcards will be treated as usual. But if any one of those lines of text starts with an open parenthesis '(', then that one single line will be tested using regexp rules.
So for example in your black email list, you can have:
mailto:001@1stdns.net" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - 001@1stdns.net mailto:01@dqedu.net" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - 01@dqedu.net mailto:06033971509-0001@t-online.de" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - 06033971509-0001* mailto:320052144390-0001@t-dialin.net" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - 320052144390-0001@t-dialinnet mailto:520099975562-0001@t-online.de" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - 520099975562-0001@t-online.de mailto:arichter@mainpean.de" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - arichter@mainpean.de
([_a-zA-Z\d\-\.]+%[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+) mailto:arichter@starweb-service.de" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - arichter@starweb-service.de mailto:ads@mallpool.com" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - ads@mallpool.com mailto:angelica22lyximboorg7@hotmail.com" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - angelica22lyximboorg7@hotmail.com mailto:annasvetcy59@hotmail.com" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - annasvetcy59@hotmail.com
and just that one regex line will be matched using regex. All other lines will be processed regularly with common fast matching.
For now regexps are VERY lack of performance, so use it with caution.
|