Article View: news.software.readers
Article #242928Re: [Xnews] Looking for regex help - 20 CAPITAL letters in subject header?
From: BookWight
Date: Mon, 04 Oct 2010 20:11
Date: Mon, 04 Oct 2010 20:11
109 lines
4380 bytes
4380 bytes
Wandering along the edges of news.software.readers, I found the following
bit of electronic flotsam written by Mike Yetto <myetto1@nycap.invalid>
in news:slrn20101002104951.499.twooffive@may.eternal-september.org:
> Gene E. Bloch <not-me@other.invalid> writes and having writ moves on.
>>On Fri, 01 Oct 2010 08:05:06 -0400, Mike Yetto wrote:
>>>
>>> How about starting with this...
>>>
>>> Subject:= ([A-Z][~A-Z]*){n}
>>>
>>> The intent is to look for a UC character optionally followed by
>>> other characters n times. The 'n' can be changed from an exact
>>> number to a minimum with a comma.
>>>
>
>>Thanks for that, Mike. I was (justifiably, I say!) lazy about RTFM,
>>since I'm not running xnews, but I though my idea might be a good
>>starting point for the OP.
>
> This was simpler than I thought it would be (*if* it works) and I
> really have to stop outwitting myself.
>
>>If the OP is gone, so be it, but your detailed answer should help
others
>>who *are* using xnews. And maybe the same idea will work for other
>>newsreaders as well, mutatis mutandis.
>
> This should work (or come close) with slrn as well and the
> details were supplied so tweaking would be easier. However, I
> still think that just looking for a lower-case character would
> eliminate a good number of spam posts.
>
> Mike "regex: a parser for all seasons" Yetto
I'm sorry I don't check into this group more often.
I have, in fact, RTFM. I've also read through several references on
regular expressions picked up from the e-book groups. Too much info =
information overload = brain fart. In response to one of the replies, I
have spent a day gathering examples of what I would like to filter out.
It may well be that I need 2 regex expressions:
#1. for subject lines consisting of 20 or more capital letters & no
lowercase.
examples:
THE BEST IF YUM YUM YUM NZB FILES (~/2)
WEB PRIVACY, AN0N EMAIL, WEB SURFING, FILE SHARING, IRC, USENET -
EVERYTHING
MESMARISING VIDEOS&HOT PHOTOS
PARIS COLLEGE GIRLS WITHOUT DRESS IMAGES.
#2. Subject lines containing 20+ capital letters & unknown mixture of
lower case.
examples:
(WWW.IOFFERKICKS.COM)nike shoes:$32,handbag:$35,NFL:$20,jean:$30,UGG
boot:$50(FREE SHIPPING)
## DONT PAY FOR USENET ## - An0nYm0uS, Unlimited, all alt.binaries groups
included - Total Usenet Anonymity
0NLINE AN0NYMITY - PRIVACY T00LS - AN0NYMOUS USENET - AN0N VISAS and
MORE
||||| FREE USENET ACCESS ||| - An0nYm0uS, Unlimited, all alt.binaries
groups included - Total Usenet Anonymity
WHOOO MAN DAS IST GOOT EATEN - "SAUSAGEN UND EGGEN.PDF" 335.8 kBytes yEnc
>> WHY PAY FOR USENET?? << - FREE Anonymous Usenet, ALL Binaries groups,
UNLIMITED Downlaods, COMPLETE Anonymity
as before, all helpful comments welcome.
Technical Details
Message-ID:
<Xns9E07862949254bookwight@207.246.207.168>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!pink.octanews.net!indigo.octanews.net!news-out.octanews.net!mauve.octanews.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mailReferences:
<Xns9E0350120FCD5bookwight@207.246.207.159> <Xns9E03730466944VeebleFetzer@216.250.188.141> <slrn20100930130743.632.twooffive@may.eternal-september.org> <hzp2g19rrxa3$.1qs9z2e0o64o9.dlg@40tude.net> <slrn20100930182657.380.twooffive@may.eternal-september.org> <eby8yvz4ebfg$.12vrytnc6gfn6$.dlg@40tude.net> <slrn20101001075806.483.twooffive@may.eternal-september.org> <l8kj04nq5y89.p0vk321749dn$.dlg@40tude.net> <slrn20101002104951.499.twooffive@may.eternal-september.org>Show Full Headers
Complete Article Headers
Message-ID: <Xns9E07862949254bookwight@207.246.207.168> Subject: Re: [Xnews] Looking for regex help - 20 CAPITAL letters in subject header? Date: Mon, 04 Oct 2010 20:11:19 +0000 From: BookWight <Bookwight@publicspam.com> References: <Xns9E0350120FCD5bookwight@207.246.207.159> <Xns9E03730466944VeebleFetzer@216.250.188.141> <slrn20100930130743.632.twooffive@may.eternal-september.org> <hzp2g19rrxa3$.1qs9z2e0o64o9.dlg@40tude.net> <slrn20100930182657.380.twooffive@may.eternal-september.org> <eby8yvz4ebfg$.12vrytnc6gfn6$.dlg@40tude.net> <slrn20101001075806.483.twooffive@may.eternal-september.org> <l8kj04nq5y89.p0vk321749dn$.dlg@40tude.net> <slrn20101002104951.499.twooffive@may.eternal-september.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!pink.octanews.net!indigo.octanews.net!news-out.octanews.net!mauve.octanews.net!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Newsgroups: news.software.readers Organization: Dewey Decimal System User-Agent: Xnews/2006.08.24 Lines: 109 NNTP-Posting-Host: ddf0ed01.news.astraweb.com X-Trace: DXC=R]G?W0f1BeaJ?XMfTm0i_cL?0kYOcDh@jNnj194<c3XcI7g=bIdTQPljRQE:JQeY?a]=T0i?@LkghIh<diZ<Sk`mE`3KGMo7?MjKAUPi2GXl:g X-Original-Bytes: 4090