Article View: news.software.readers
Article #110544Re: Neeed help converting Agent regex-filter to Xnews...
From: ratzilla
Date: Wed, 02 Oct 2002 21:27
Date: Wed, 02 Oct 2002 21:27
37 lines
2496 bytes
2496 bytes
"-< Rene Brehmer >-" <cerberus@mail-telia.dk> wrote in
news:Xns929BDF0C420DAmetalbunnynet@194.255.237.194:
> ratzilla split hairs when writing
> news:Xns929866318EA60iamderat@130.133.1.4:
>
>> My own spam killing section is a lot shorter than that, with only 7
>> words that I kill on sight. You may be able to replace lots of your
>> entries with this:
>>
>> % anything spelled l,i.K.e t.h-i.s
>> Subject: (\w\W\s?){7,}
>
> Eh ... totally don't get that syntax ... \s is spaces, right? and cross-
> referencing with Agent's helpfile, \s? would give 0-1 spaces ...
>
> but what is \w\W ??
In Xnews, go to Help-> Manual. Once it's open in your browser, do a find for
"\w". That little section on regular expressions is pretty well done -
you've also got the file "pcre.html" in the xnews directory. The "test
regex" form is useful - drop a spam-like phrase into the test box, then
experiment with patterns against it without messing with your actual score-
file.
That expression, by the way, means "any word character, followed by non-word
character, optionally followed by an additional space, repeated at least 7
times". Catches 99% of p.h'e-r.o,m o.n'e.s.
> And I still haven't figured out when you're to use () or {} ... really
> need a complete reference ... it seems that Xnews has alot more character
> options than Agent does ...
>
> It's so vast, and poorly referenced (within Xnews atleast) that I've go
> no way of even start testing...
Technical Details
Message-ID:
<Xns929BE4739E1D7iamderat@130.133.1.4>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!81-86-196-46.dsl.pipex.COM!not-for-mailReferences:
<Xns92982FA33E02Cmetalbunnynet@194.255.237.239> <Xns929866318EA60iamderat@130.133.1.4> <Xns929BDF0C420DAmetalbunnynet@194.255.237.194>Show Full Headers
Complete Article Headers
Message-ID: <Xns929BE4739E1D7iamderat@130.133.1.4> Subject: Re: Neeed help converting Agent regex-filter to Xnews... Date: Wed, 02 Oct 2002 21:27:30 +0000 From: ratzilla <twits@cheerful.com> References: <Xns92982FA33E02Cmetalbunnynet@194.255.237.239> <Xns929866318EA60iamderat@130.133.1.4> <Xns929BDF0C420DAmetalbunnynet@194.255.237.194> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!81-86-196-46.dsl.pipex.COM!not-for-mail Newsgroups: news.software.readers Organization: twits@cheerful.com Lines: 36 NNTP-Posting-Host: 81-86-196-46.dsl.pipex.com (81.86.196.46) X-Trace: fu-berlin.de 1033594050 14676250 81.86.196.46 (16 [126104]) User-Agent: Xnews/05.08.12