🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Russell Schulz Sun, 16 Jan 1994 07:08
Re: How to kill all caps
#7359
Author: Russell Schulz
Date: Sun, 16 Jan 1994 07:08
19 lines
1756 bytes
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?

on a related note, I've added these onto my todo list:

} maybe, when a Subject: line comes in and is in all uppercase, either
}   change to lowercase or First Letter Caps or look for similar,
}   mixed-case Subject: headers.  same for 25-char truncation...

this would make Subject-grouping (no, not threading) much more
reliable (although these articles probably don't always have
legal References: lines (I Subject-group, then References-thread)).

has anyone tried this?  how did it work for you?
-- 
Russell Schulz  russell@alpha3.ersys.edmonton.ab.ca  ersys!rschulz  Shad 86c
Re: How to kill all caps
#7429
Author: 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
Re: How to kill all caps
#8015
Author: Jesse Montrose
Date: Fri, 11 Mar 1994 07:34
19 lines
1517 bytes
russell@alpha3.ersys.edmonton.ab.ca (Russell Schulz) writes:

>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?

Couldn't you use

[A-Z] ?  You could add 0-9 and stuff to taste..
-- 
_____________________________________________________________________________
Jesse Montrose jesse@netcom.com jesse@xaostools.com ftp.netcom.com:/pub/jesse
World Wide Web information with ftp://ftp.netcom.com/pub/jesse/html/home.html
-- 
_____________________________________________________________________________
Jesse Montrose jesse@netcom.com jesse@xaostools.com ftp.netcom.com:/pub/jesse
World Wide Web information with ftp://ftp.netcom.com/pub/jesse/html/home.html
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