Article View: news.software.nn
Article #5455Re: How to kill subject with only Capitals & Punctuation?
From: Nancy McGough
Date: Tue, 15 Feb 1994 22:40
Date: Tue, 15 Feb 1994 22:40
26 lines
1985 bytes
1985 bytes
dlyons@unix1.tcd.ie (Donal Lyons) writes: >I've been using Nancy McGough's solution until now and it seemed to work >perfectly but have just come across a subject that I'd have expected to >be suppressed and it wasn't. The subject in question was: >BEST "PROOF" OF "HOLOCAUST GASSINGS" IS PHONY! > >I'd expected that the kill file line >:!s/=:^[^a-z]*$ >would have suppressed a subject which included no lower-case character >but the above is a counter-example. > >Does anyone have a solution that would kill subjects of the above type? I'm crossposting this to comp.unix.questions with hopes that a regular expression guru will have an explanation. I also would have guessed that the regexp ^[^a-z]*$ would have caught the above subject since no character is in the range a-z. My guess is that punctuation is treated differently. Any regexp gurus know how to catch subjects like the above that are in all caps and also contain punctuation like " and !? FYI, nn uses egrep-type regexps. Thanks much, Nancy PS - If you refer to me in a post I actually prefer "nancym" to spelling out my full name. Thnx!
Technical Details
Message-ID:
<2jrj0d$oua@nwfocus.wa.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!nwnexus!nancymReferences:
<dlyons.761226723@unix1.tcd.ie>Show Full Headers
Complete Article Headers
Message-ID: <2jrj0d$oua@nwfocus.wa.com> Subject: Re: How to kill subject with only Capitals & Punctuation? Date: Tue, 15 Feb 1994 22:40:13 +0000 From: Nancy McGough <nancym@ii.com> References: <dlyons.761226723@unix1.tcd.ie> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!cs.utexas.edu!uunet!nwnexus!nancym Newsgroups: news.software.nn,comp.unix.questions Organization: Infinite Ink, Seattle, Washington, USA Lines: 27 Sender: news@nwfocus.wa.com Reply-To: Nancy McGough <nancym@ii.com> NNTP-Posting-Host: nwfocus.wa.com X-Newsreader: NN [version 6.4.18] Originator: nancym@coho.halcyon.com