Print Page | Close Window

Regex?

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: http://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=590
Printed Date: 18 October 2017 at 12:06am


Topic: Regex?
Posted By: Guests
Subject: Regex?
Date Posted: 17 May 2003 at 4:36am

Hi....,

Where can i find more info on how to use the regex with spamfilter?

i didnt saw any update,explenation on the docs...

 

 

Thanks,

Eran.




Replies:
Posted By: Guests
Date Posted: 17 May 2003 at 4:44am

Here is the url that is provided with the help file included with SpamFilterISP.

http://www.anaesthetist.com/mnm/perl/regex.htm" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www.anaesthetist.com/mnm/perl/regex.htm" CLASS="ASPForums" TITLE="WARNING: URL created by poster. - http://www.anaesthetist.com/mnm/perl/regex.htm



Posted By: Guests
Date Posted: 17 May 2003 at 10:24pm

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.



Print Page | Close Window