Article View: news.software.readers
Article #190939Re: [Pan] filter help
From: Mike Dee
Date: Mon, 25 Sep 2006 12:10
Date: Mon, 25 Sep 2006 12:10
40 lines
2877 bytes
2877 bytes
On Sat, 23 Sep 2006 15:55:19 +0100, Peter J Ross wrote: >>> \bpan\b|slrn|(xnews)?.*(filte|\bkill|pcre|scor).*(?(1).*|\1) >> [...] >> "xnews is great at filtering out nuisances" works >> "filtering out nuisances with xnews, cool!" fails. > > <gnashes teeth, tears hair> > > My test expression produced a false positive that I misread as a true > positive. > > It seems that there's nothing better than the /foo.*bar|bar.*foo/ > syntax. You're darn toot'n! At least, myself, slrn, xnews and pan understand this method without loss of braincells, hair, or gnashing of teeth. > However, the following might also work and save keystrokes: > > \bpan\b|slrn|(xnews).*(filte|\bkill|pcre|scor)|(?2).*(?1) No no no, go back. The previous example was working in one direction. This one fails in both (in Xnews). That is, Xnews's built-in pcre checker tells me so - fails on unknown character after the "?" - doesn't elaborate on which "?"... Actual error msg: "Perlre: unrecognized character after (?" > See "Subpatterns as subroutines" in man pcrepattern. Hmmm... I have tried to understand more complex methods of getting a seemingly simple task done but I'm coming to the conclusion '/foo.*bar|bar.*foo/' wins because of it's ease of use to implement and it's straight forward readability, especially in small or short scripts. -- dee
Technical Details
Message-ID:
<pan.2006.09.25.12.10.30.800705@emteedee.invalid>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.albasani.net!news.henrynet.se!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> <Xns9841964BDE457emteedeemotzarella@85.31.186.76> <slrneh523g.4bq.pjr@nntp.alcatroll.com> <Xns9846B256E2D8Femteedeemotzarella@85.31.186.76> <slrnehainm.4jd.pjr@nntp.alcatroll.com>Show Full Headers
Complete Article Headers
Message-ID: <pan.2006.09.25.12.10.30.800705@emteedee.invalid>
Subject: Re: [Pan] filter help
Date: Mon, 25 Sep 2006 22:10:37 +1000
From: Mike Dee <mikedee@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> <Xns9841964BDE457emteedeemotzarella@85.31.186.76> <slrneh523g.4bq.pjr@nntp.alcatroll.com> <Xns9846B256E2D8Femteedeemotzarella@85.31.186.76> <slrnehainm.4jd.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.albasani.net!news.henrynet.se!not-for-mail
Organization: Poor Boy
User-Agent: Pan 0.14.2.91 (Mac OS, X-Server, Redhat FC4)
Newsgroups: news.software.readers
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
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Lines: 40
X-Authenticated-User: dee
X-Complaints-To: abuse@henrynet.se