🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #45663

Attack of the Killer Articles pt. 2: Need help with regular expression

#45663
From: Roy DeRousse
Date: Sun, 03 Jan 1999 00:00
36 lines
2066 bytes
Some of you may remember a problem I discovered last month.  Gravity 
chokes on certain SPAM articles when it tries to decode them.  They cause 
the program to crash.  My only solution has been to add them to the bozo 
bin.  Recently, the number of these Killer Articles (KA) has increased 
dramatically, and it is a real pain to 1) add a subject to the bozo bin,  
2) restart the decoding, 3) crash, and 4) keep repeating the cycle.  I 
would like to make a general purpose rule to kill these KAs before they 
kill me!

Fortunately, the spammers are consistent with their subjects.  Here is an 
example:

  io7y   S E E  M Y  G I R L F R I E N D

They start off with some gibberish, followed by some spaces, followed by 
a double-spaced subject in caps.  I want to create a regular expression 
that does this:  "Mark article as read if subject contains a capital 
letter, followed by a space, followed by a capital letter, followed by 
two spaces, followed by a capital letter, followed by a space, followed 
by a capital letter."  I am having trouble creating such an expression.  
Here is onen of my attempts:

  Subject contains reg. expr. "[A-Z][ ][A-Z][ ][ ][A-Z][ ][A-Z]"

It didn't find any matches.

Can anyone help me with this?  Please?!  I would be forever in your debt.

-- 
Have fun!

Roy DeRousse (relayer@iname.com)
St. Louis, Missouri, USA


Technical Details
Message-ID: <MPG.10f8e9c6277485ec989750@news.earthlink.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <MPG.10f8e9c6277485ec989750@news.earthlink.net>
Subject: Attack of the Killer Articles pt. 2: Need help with regular expression
Date: Sun, 03 Jan 1999 00:00:00 +0000
From: relayer@iname.com (Roy DeRousse)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 428247311
X-ELN-Insert-Date: Sun Jan 3 00:55:03 1999
Organization: EarthLink Network, Inc.
X-Posted-Path-Was: not-for-mail
Newsgroups: news.software.readers
X-ELN-Date: 3 Jan 1999 08:46:59 GMT