Article View: news.software.nn
Article #8359Re: regexp to kill posts in ALL CAPS
From: Kyler Laird
Date: Fri, 17 Jan 1997 00:00
Date: Fri, 17 Jan 1997 00:00
31 lines
1450 bytes
1450 bytes
"Paul J. Lucas" <pjl@no-junk-mail.org> writes:
>> Good idea. What you mean is to look for all caps, some punctuation
>> and white space. Thus:
>> :!s/:^[A-Z.,!$ ]+$
Ick! That strings is going to get really long...
> Right, which is exactly the same thing as saying "no lower case
> letters."
No, it's not. "A-Z.,!$ a-z" does not cover all of the
characters that can show up in a Subject: line. '&' and
'-' are commonly used. How about "SAVE 40% ON YOUR PHONE
BILLS!"?
A much simpler approach is to say what you mean: "match
all subjects composed entirely of characters which are
not lower case letters" or
:!s/=:^[^a-z]*$
This works beautifully for me. I wonder how long it will
take the spammers to add lowercase junk?
Subject: <blink>CLICK HERE!</blink>
("click here" is already in my kill file...)
--kyler
Technical Details
Message-ID:
<5bocc0$nks@mozo.cc.purdue.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mailReferences:
<pjl.853382598@shellx> <5bmdj2$kq1@samba.rahul.net> <rlogin.853489363@shellx>Show Full Headers
Complete Article Headers
Message-ID: <5bocc0$nks@mozo.cc.purdue.edu> Subject: Re: regexp to kill posts in ALL CAPS Date: Fri, 17 Jan 1997 00:00:00 +0000 From: laird@pier.ecn.purdue.edu (Kyler Laird) References: <pjl.853382598@shellx> <5bmdj2$kq1@samba.rahul.net> <rlogin.853489363@shellx> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail X-Deja-AN: 210456938 Organization: Purdue University Newsgroups: news.software.nn