🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
3 messages
3 total messages Started by Sven Guckes Thu, 16 Jan 1997 00:00
Re: regexp to kill posts in ALL CAPS
#8344
Author: Sven Guckes
Date: Thu, 16 Jan 1997 00:00
30 lines
1537 bytes
"Paul J. Lucas" <pjl@no-junk-mail.org> writes:
> Observation:
> Posts with subjects in ALL CAPITAL LETTERS are never worth reading.
> I tried constructing a kill-file entry to get rid of such posts as:
> 	:!s/:^[^a-z][^a-z]*$
> that is a post whose Subject consists of no lower-case letters;
> but the above regexp doesn't seem to work.  Any ideas?

The rule that works with SLRN is this:

	% Subject contains capital letters and spaces only
	[*]
	Score: -1000
		Subject: ^\c[A-Z ]+$

But I am too lazy to test it right now with NN.  ;-)
Should I add a page with killfile examples to the NN Pages?

I would send a copy of my followup if I didn't have to fix the header...

Sven

-- 
Sven Guckes guckes@math.fu-berlin.de using NN 6.5.0 #0 (NOV) [961201] nnsig
NN Pages:          http://www.math.fu-berlin.de/~guckes/nn/
NN wishlist:       http://www.math.fu-berlin.de/~guckes/nn/wishlist.html
NN sample setup:   http://www.math.fu-berlin.de/~guckes/nn/init

Re: regexp to kill posts in ALL CAPS
#8346
Author: Sven Guckes
Date: Thu, 16 Jan 1997 00:00
22 lines
1398 bytes
davis@space.mit.edu (John E. Davis):
> > Subject: ^\c[A-Z ]+$
> It is unlikely it will work with NN.  The \c regular expression is
> simply used to turn on case-sensitivity whereas \C will turn it off.
> As far as I know, these forms are unique to slang regular expressions.

Well, then maybe this will work:

	# Kill subjects with capital letters, digits, spaces, and !&$
	:!s:[A-Z0-9 !&\$]*
	# Hopefully kills these Subject: lines:
	# Subject: AAARRRGGGHHH
	# Subject: MAKE MONE FAST
	# Subject: MAKE $$$$ FAST!!!
	# Subject: TH1S 1S C00L!!1!

Someone please test this and let us know - thanks!

Sven  [too busy for testing now]

Re: regexp to kill posts in ALL CAPS
#8365
Author: John E. Davis
Date: Thu, 16 Jan 1997 00:00
25 lines
1156 bytes
On 16 Jan 1997 10:32:53 GMT, Sven Guckes <guckes@math.fu-berlin.de>
wrote:
>The rule that works with SLRN is this:
>
>	% Subject contains capital letters and spaces only
>	[*]
>	Score: -1000
>		Subject: ^\c[A-Z ]+$
>
>But I am too lazy to test it right now with NN.  ;-)

It is unlikely it will work with NN.  The \c regular expression is
simply used to turn on case-sensitivity whereas \C will turn it off.
As far as I know, these forms are unique to slang regular expressions.

For example,

    \<\c[A-Z]\C[a-z]*\>
    
will match any capitalized word.

--John

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