Article View: news.software.readers
Article #190719Re: [Pan] filter help
From: Mike Dee
Date: Sun, 17 Sep 2006 04:46
Date: Sun, 17 Sep 2006 04:46
46 lines
3073 bytes
3073 bytes
Peter J Ross <pjr@kookbusters.org> wrote in
news:slrnegnrpr.4jb.pjr@nntp.alcatroll.com:
>> ~Subject: \bpan\b|slrn|xnews.*(filte|\bkill|pcre|scor)
>
> But this kills subjects like "filters in xnews". Instead,
>
> \bpan\b|slrn|((xnews)?.*(filte|\bkill|pcre|scor)(?(1).*|\1))
>
> should match both "xnews filters" and "filters in xnews", as long
> as pcre-style back references and conditional subpatterns are
> implemented. (If not, just add another, reversed subpattern.)
I could not get this to work, as is. If I change to a lookahead
assertion of:
(?>(xnews).*(filte|\bkill|pcre|scor)(?(1).*|\1))
Then it begins to work looking ahead only, but I can't seem to get
the look behind assertions working in this no matter how I try to
juggle it... It would be good if you could revise your post a
little here. My understanding of reversed subpatterns is not too
hot. :)
My following clumsy addition works both ways (no false positives):
~Subject: \bpan\b|slrn|xnews.*(filte|\bkill|pcre|scor)|(filte|\bkill|pcre|scor).*xnews
It doesn't look so attractive though :-(
> You might also want to match
>
> |reg(ular\s)?ex|
Changing to an OR condition improves the look and helped pad out
adding extra expressions such as your suggested regex:
[^news\.software\.readers$]
Score:: =-9999
~Subject: \bpan\b|slrn
~Subject: xnews.*(filte|\bkill|pcre|reg(ular|)\s?ex|scor)
~Subject: (filte|\bkill|pcre|reg(ular|)\s?ex|scor).*xnews
--
dee
Technical Details
Message-ID:
<Xns9841964BDE457emteedeemotzarella@85.31.186.76>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!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.germany.com!news.motzarella.org!not-for-mailReferences:
<pan.2006.09.10.10.45.18.473064@Thank.You> <pan.2006.09.10.13.19.10.763936@emteedee.invalid> <pan.2006.09.14.10.52.03.166221@Thank.You> <Xns983F8C28A6185emteedeemotzarella@85.31.186.76> <slrnegnrpr.4jb.pjr@nntp.alcatroll.com>Show Full Headers
Complete Article Headers
Message-ID: <Xns9841964BDE457emteedeemotzarella@85.31.186.76>
Subject: Re: [Pan] filter help
Date: Sun, 17 Sep 2006 04:46:30 +0000
From: Mike Dee <emteedee@invalid.invalid>
References: <pan.2006.09.10.10.45.18.473064@Thank.You> <pan.2006.09.10.13.19.10.763936@emteedee.invalid> <pan.2006.09.14.10.52.03.166221@Thank.You> <Xns983F8C28A6185emteedeemotzarella@85.31.186.76> <slrnegnrpr.4jb.pjr@nntp.alcatroll.com>
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!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.germany.com!news.motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: Poor Boy
Lines: 46
Mime-Version: 1.0
X-Trace: U2FsdGVkX1+9gNRhRkZQD9Zk2eT/UWQvOGn6ajPkKKBdS3DFDIaHhoX3kNZiw4uucEpcg/iik8oVrOHpynTS+WuuXs7LfwfZtzKYRUq2Gjun9JXmoUg0TUAssHKkA0Il9GRHWpPFb1NaY+w0T01s1WhkjYyuYd3nqs8yilRAlIaGjjIHOpoA67bEcvZc+UIjOLzdOUEqfGwoEtENkMQeew==
X-Complaints-To: abuse@motzarella.org
NNTP-Posting-Date: Sun, 17 Sep 2006 04:46:30 +0000 (UTC)
X-location: Global Village, Earth.
X-it: See ya!
X-Face: $W<X:Uw4$"nTXRHqqZ=.|pFI@K,TNNH0i>-J; N5/yst7]cQb.o^L$oAhs-J!C
AOUMQ^NHu3aTb9H8awW~4Y.LR`[o}Rz6Xf=^krb-AwUiM"7zA+QR<vWz'8>hKiTOyd]h
z]7m=[nhuH{NMrE>~][PM`wSKd?TFV-.glh)>N
User-Agent: Xnews/2006.08.24
X-salutation: Gudday.