🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #190923

Re: [Pan] filter help

#190923
From: Peter J Ross
Date: Sat, 23 Sep 2006 14:55
37 lines
2349 bytes
On Fri, 22 Sep 2006 07:31:54 +0000 (UTC), Mike Dee
<emteedee@invalid.invalid> wrote in news.software.readers:

> Peter J Ross <pjr@kookbusters.org> wrote in 
> news:slrneh523g.4bq.pjr@nntp.alcatroll.com:
>
>> Try this instead:
>> 
>>     \bpan\b|slrn|(xnews)?.*(filte|\bkill|pcre|scor).*(?(1).*|\1)
>
> Nope, no go. As is, it works in forward motion OK, the look behind 
> assertion is still broken :-(
>
> That is:
> "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. However, the following might also work and save keystrokes:

    \bpan\b|slrn|(xnews).*(filte|\bkill|pcre|scor)|(?2).*(?1)

See "Subpatterns as subroutines" in man pcrepattern.


PJR :-)
-- 
  _  _(o)_(o)_  _     | The fool hath said in his heart, "There is no Cabal."
._\`:_ F S M _:' \_,  | FSM: <http://www.venganza.org/>
    / (`---'\ `-.     | AUK: <http://www.netcabal.com/auk/>
 ,-`  _)    (_,   F_P | PJR: <http://insurgent.org/~pjr/>
Technical Details
Message-ID: <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!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy3no!shaw.ca!news.alt.net!nntp.alcatroll.com!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <slrnehainm.4jd.pjr@nntp.alcatroll.com>
Subject: Re: [Pan] filter help
Date: Sat, 23 Sep 2006 15:55:19 +0100
From: Peter J Ross <pjr@kookbusters.org>
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>
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!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy3no!shaw.ca!news.alt.net!nntp.alcatroll.com!not-for-mail
Newsgroups: news.software.readers
Organization: Cabal Obsidian Order [TINCOO]
Lines: 37
X-Operating-System: Debian GNU/Linux (Sid/Unstable)
X-Kernel: Linux 2.6.17-2-686
User-Agent: slrn/0.9.8.1pl1 (Debian)