🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by John De Armond Mon, 10 Jan 1994 07:28
How to kill all caps
#5267
Author: John De Armond
Date: Mon, 10 Jan 1994 07:28
11 lines
1084 bytes
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?

John

-- 
John De Armond, WD4OQC, Marietta, GA    jgd@dixie.com 
"Would you fire on US Citizens while in the process of confiscating their guns?"
    A question on a survey given to members of the U.S. counterterrorist 
    unit Navy SEAL Team Six by their commanders last September.
Re: How to kill all caps
#5266
Author: Arthur Rubin
Date: Tue, 11 Jan 1994 00:11
17 lines
1403 bytes
In <r5j386n@dixie.com> 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 haven't tried this, and I don't know exactly how nn's regular expression
parser works, but

:/=!s:^[A-Z .,]*$

might work.  (If you figure it out, post -- it might not be a bad idea to
put it in the FAQ.)
--
Arthur L. Rubin: a_rubin@dsg4.dse.beckman.com (work) Beckman Instruments/Brea
216-5888@mcimail.com 70707.453@compuserve.com arthur@pnet01.cts.com (personal)
My opinions are my own, and do not represent those of my employer.
Re: How to kill all caps
#5298
Author: Nancy McGough
Date: Sat, 15 Jan 1994 08:30
23 lines
1380 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?

How about...

:!s/=:^[^a-z]*$

...which means kill (!) all subjects (s) that match the 
regular express (/), case sensitive (=).  The RE means
anything that starts (^) with anything other than a-z 
([^a-z]) followed by arbitrarily many (*) characters 
that aren't a-z through the end of the line ($).  

The brief test I just did worked!

Enjoy,
Nancy


-- 
nancym@ii.com
Re: How to kill all caps
#5168
Author: Russell Schulz
Date: Sun, 16 Jan 1994 07:08
19 lines
1685 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
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