Article View: news.software.readers
Article #199370Re: [XNews] A question: How to filter?
From: TheWanderer
Date: Fri, 11 May 2007 19:38
Date: Fri, 11 May 2007 19:38
83 lines
3494 bytes
3494 bytes
Peter J Ross <pjr@example.invalid> wrote in
news:slrnf48rmc.3db.pjr@pjr.gotdns.org:
> In news.software.readers on 09 May 2007 16:49:27 GMT,
> TheWanderer <eric_t2006-usenet@NOSPAMyahoo.com> wrote:
>
>> Q: How does one set up a filter that can kill any article
>> with a particular word in the subject? Say that I simply
>> want any article with the word "casino", for instance, to
>> simply go away?
>
> Score: =-9999
> Subject: casino
>
>> Can you include multiple words per filter, or would one
>> separate filter per term work better?
>
> Score: =-9999
> Subject: casino|lottery|bingo
>
> Score:: =-9999
> Subject: casino
> Subject: lottery
> Subject: bingo
>
> Score: =-9999
> Subject: casino
> Score: =-9999
> Subject: lottery
> Score: =-9999
> Subject: bingo
>
> These three should all work exactly the same way.
>
>> Can the filter, if it exists, of course, be used to screen
>> "partial" terms, like "[filename].mpg"?
>
> Usually, the expression in the filter will match part of a
> word *or* a whole word, so you'd use
>
> Subject: \.mpg
>
> (where "\." matches the dot; "." would match any
> character).
>
> If you wanted to match only whole words, you'd use "\b" to
> match word boundaries. Examples:
>
> Subject: fred
> % matches the words fred, alfred and frederick
>
> Subject: \bfred
> % matches fred and frederick, but not alfred
>
> Subject: fred\b
> % matches fred and alfred, but not frederick
>
> Subject: \bfred\b
> % matches only fred
>
> Subject: casino\b
> % matches casino but not casinos
>
> And finally, a rather advanced one to catch plurals and
> misspellings, which some study of the XNews documentation
> should explain:
>
> Subject: \b(casino(s|es)?|lot{1,2}er(y|ies)|bingo)\b
> % matches the words casino, casinos, casinoes,
> lottery, % lotteries, lotery, loteries and bingo, and
> nothing else.
>
> You can match all the words in separate rules if you find
> it easier, but after learning how to walk, learning how to
> run can be fun too.
>
Bravo. Thanks!
--
=========================
TheWanderer
Technical Details
Message-ID:
<Xns992D9457D87D8erictzoneabpeg@216.151.153.22>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!news.astraweb.com!router1.astraweb.com!not-for-mailReferences:
<Xns992B7A2FA1AC4erictzoneabpeg@216.151.153.66> <slrnf48rmc.3db.pjr@pjr.gotdns.org>Show Full Headers
Complete Article Headers
Message-ID: <Xns992D9457D87D8erictzoneabpeg@216.151.153.22> Subject: Re: [XNews] A question: How to filter? Date: Fri, 11 May 2007 19:38:23 +0000 From: TheWanderer <eric_t2006-usenet@NOSPAMyahoo.com> References: <Xns992B7A2FA1AC4erictzoneabpeg@216.151.153.66> <slrnf48rmc.3db.pjr@pjr.gotdns.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!news.astraweb.com!router1.astraweb.com!not-for-mail Newsgroups: news.software.readers Organization: TheWanderer User-Agent: Xnews/2006.08.24 XFace: '5qL,]_Zi&~5#8BIK*-&nV8wl&FZd\4(0OiLp}w)\AehmnfT/}; JtT?77[=erGsZuY:'""p; x$@GxINx6f`7Q2}WKWHu+; >n>lG0~V(O!on)=}B?Bl:$kvz8g.%NC0,i`Kuy4ORz"'dgLq%/BZi; n&G@}0D`*KZ'%0; tFq?M(J)T X-Antivirus: avast! (VPS 000739-3, 05/11/2007), Outbound message X-Antivirus-Status: Clean Lines: 83 NNTP-Posting-Host: f237d356.news.astraweb.com X-Trace: DXC=]X8acjkCh?dF1iA^=`ZUjbL?0kYOcDh@jfilEf0NdY^eZDA?5f0EcadCHWO@8l0^ekAVnNJ__2TJli2fLWehBgOkPSZF0]S]>I`