🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #4511

Re: Kill file question

#4511
From: Nancy McGough
Date: Sun, 18 Jul 1993 17:01
36 lines
2170 bytes
>In article <224d9e$ngi@news.u.washington.edu> nancym@u.washington.edu (Nancy McGough) writes:
>|^mail[^a-zA-Z]|[^a-zA-Z]mail[^a-zA-Z]|[^a-zA-Z]mail$
>|
>|I'd love to hear about a more concise regular expression 
>|that works!


kherron@ms.uky.edu (Kenneth Herron) writes:
>	(^| )mail($|[^a-zA-Z])


Yes, I like this one -- here's what I'm using now:

(^|[^A-Za-z])mail([^A-Za-z]|$)

This also catches the case when "mail" is the only thing in
the subject, i.e. "^mail$", which my expression above doesn't 
catch.  Note that you need to put [^A-Za-z] in front of mail 
to catch things like "-mail" or "+mail" or " mail" or any 
non-alpha followed by "mail".


>BTW, both news readers I'm familiar with do case-insensitive killfile
>matching, so [^a-zA-Z] is possibly redundant.

In nn you can specify case sensitivity in these ways...
* Within the kill file use the = flag
* For matching from within nn you can either:
    - set the case-fold-search variable off, or
    - start nn with the -i flag


Also trn's "memorized commands" have a flag (c I think) for 
specifying case sensitivity.

Nancy
Technical Details
Message-ID: <22bvm2$2ig@news.u.washington.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.nn.mbox.zip!gmd.de!Germany.EU.net!news.dfn.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!usenet.coe.montana.edu!netnews.nwnet.net!news.u.washington.edu!stein2.u.washington.edu!nancym
References: <21muctINNk2g@lynx.unm.edu> <21sfsq$l7a@news.u.washington.edu> <FXARS.93Jul14114651@camelot.acf-lab.alaska.edu> <224d9e$ngi@news.u.washington.edu> <CA8LJ9.5Lv@ms.uky.edu>

Show Full Headers
Complete Article Headers
Message-ID: <22bvm2$2ig@news.u.washington.edu>
Subject: Re: Kill file question
Date: Sun, 18 Jul 1993 17:01:54 +0000
From: nancym@stein2.u.washington.edu (Nancy McGough)
References: <21muctINNk2g@lynx.unm.edu> <21sfsq$l7a@news.u.washington.edu> <FXARS.93Jul14114651@camelot.acf-lab.alaska.edu> <224d9e$ngi@news.u.washington.edu> <CA8LJ9.5Lv@ms.uky.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.nn.mbox.zip!gmd.de!Germany.EU.net!news.dfn.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!usenet.coe.montana.edu!netnews.nwnet.net!news.u.washington.edu!stein2.u.washington.edu!nancym
Newsgroups: news.newusers.questions,news.software.nn
Organization: University of Washington
Lines: 38
Reply-To: nancym@u.washington.edu (Nancy McGough)
NNTP-Posting-Host: stein2.u.washington.edu
X-Newsreader: NN [version 6.4.16]