🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #7429

Re: How to kill all caps

#7429
From: Bruce Lilly
Date: Wed, 19 Jan 1994 23:45
28 lines
2124 bytes
In article <940116.000836.9X1.rusnews.w164w@alpha3.ersys.edmonton.ab.ca>,
 posted to newsgroups news.software.nn,news.software.readers,
 russell@alpha3.ersys.edmonton.ab.ca (Russell Schulz) wrote:
>jgd@dixie.com (John De Armond) writes:
>
>> I'm trying to figure out a regular expression to use to kill any article
>> which has its Subject written in all capital letters.  Thus far I've
>> struck out.  Any ideas?

I don't subscribe to news.software.nn if there is such a thing, so I haven't
seen the original article. Anyway, using trn, the following works for me (I
am using a non-standard regexp package, but I think this will work with
vanilla trn):

/^\([Ss][Uu][Bb][Jj][Ee][Cc][Tt]:\)*[- 	A-Z,.#%:()*0-9\/"!'&<>+@$^_={}|:;?][-	 A-Z,.#%:()*0-9\/"!'&<>+@$^_={}|:;?]*$/cj=

I'm not sure if the Subject bit at the beginning is essential, but it
doesn't seem to hurt.  Note that this will junk articles that have no lower
case letters in the field of the subject header, including things like:

Subject: ***!!!<<< I'M A PEE SEA USER W/O A CLUE>>>!!!***

which is technically not ``all capital letters.''
(Hmm, actually it will fail to junk an article containing either a '[' or
']' in the subject-- I guess I need to make a slight adjustment...)

-- 
	Bruce Lilly		...uupsi!monymsys!sonyd1!blilly!bruce
Technical Details
Message-ID: <Pnews.bruce.759023119.873@blilly.uucp>
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!gmd.de!xlink.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!unixhub!ditka!hico2!sonyd1.broadcast.sony.com!blilly.uucp!bruce
References: <r5j386n@dixie.com> <940116.000836.9X1.rusnews.w164w@alpha3.ersys.edmonton.ab.ca>

Show Full Headers
Complete Article Headers
Message-ID: <Pnews.bruce.759023119.873@blilly.uucp>
Subject: Re: How to kill all caps
Date: Wed, 19 Jan 1994 23:45:19 +0000
From: Bruce Lilly <bruce@blilly.uucp>
References: <r5j386n@dixie.com> <940116.000836.9X1.rusnews.w164w@alpha3.ersys.edmonton.ab.ca>
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!gmd.de!xlink.net!howland.reston.ans.net!agate!headwall.Stanford.EDU!unixhub!ditka!hico2!sonyd1.broadcast.sony.com!blilly.uucp!bruce
Newsgroups: news.software.readers
Sender: bruce@blilly.uucp (Bruce Lilly)
Organization: Bruce Lilly
Reply-To: lillyb@ccmail.nhq.sony.com (Bruce Lilly)
Lines: 28