🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #15908

Re: Help composing trn killfile regexp

#15908
From: Tim Pierce
Date: Thu, 09 Mar 1995 23:12
26 lines
1635 bytes
In article <D56v3v.HD1@discus.technion.ac.il>,
Michael N. Livshin <c0905032@techst02.technion.ac.il> wrote:

>Hi there!
>
>How a shout-killing regexp might look?
>I tried /^[^a-z]*$/:j, but it doesn't work.

^ matches the beginning of the entire line, including the
"Subject:" at the start of the header.  Since the
pattern-matching is case-insensitive, you'll also want to
use a "c" modifier.  And since I imagine you also want to
kill all-caps subjects that start with "Re:", I'd suggest
using two commands:

/^Subject: [^a-z]*$/c:j
/^Subject: Re:[^a-z]*$/c:j

These two worked for me when I tried them out.

If you use "=j" instead of "j", it'll also tell you briefly
what it's killing.  I find that handy.

-- 
Unsolicited commercial electronic mail sent to this address will be
proofread at a cost of $200/hour (one half-hour minimum).
Technical Details
Message-ID: <D574GH.Drz@midway.uchicago.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!twpierce
References: <D56v3v.HD1@discus.technion.ac.il>

Show Full Headers
Complete Article Headers
Message-ID: <D574GH.Drz@midway.uchicago.edu>
Subject: Re: Help composing trn killfile regexp
Date: Thu, 9 Mar 1995 23:12:17 GMT
From: twpierce@midway.uchicago.edu (Tim Pierce)
References: <D56v3v.HD1@discus.technion.ac.il>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!howland.reston.ans.net!vixen.cso.uiuc.edu!uchinews!twpierce
Newsgroups: news.software.readers
X-Nntp-Posting-Host: quads.uchicago.edu
Keywords: regexp, trn, kill
Sender: news@midway.uchicago.edu (News Administrator)
Organization: alt.* cabal, Professor Emeritus
Lines: 26