🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
1 messages
1 total messages Started by Nancy McGough Sun, 18 Jul 1993 17:01
Re: Kill file question
#4511
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads