🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #242876

Re: [Xnews] Looking for regex help - 20 CAPITAL letters in subject header?

#242876
From: Mike Yetto
Date: Thu, 30 Sep 2010 17:13
38 lines
2573 bytes
Bert Hyman <bert@iphouse.com> writes and having writ moves on.
>In news:Xns9E0350120FCD5bookwight@207.246.207.159 BookWight
><Bookwight@publicspam.com> wrote: 

>> Hi -
>> 
>> I need help; I'm trying to filter out the subject headers which have
>> 'x' amount of capital letters in the subject.
>> 
>> All helpful suggestions welcome

>If there are no spaces, reading TFM suggests this:

>[A-Z]{x}

>If there are spaces or other characters, things get more complicated.

>See the section "Regular expression", "3) Quantifiers (match how many
>times)" 

A simpler approach would be to look for at least one lower-case
character.  To do this you need to set the regex to case
sensitive with an = sign.  Then look for [a-z] and negate the
expression.

#v+
[*]
Score:: -9999
  ~Subject:= [a-z]
#v-

Or you can look for a minimum number of lower-case characters
greater than one with the {n} construct.

Mike "answer too hard? change the question" Yetto 
-- 
In theory, theory and practice are the same.
In practice they are not.
Technical Details
Message-ID: <slrn20100930130743.632.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!newsfeed00.sul.t-online.de!t-online.de!news.buerger.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
References: <Xns9E0350120FCD5bookwight@207.246.207.159> <Xns9E03730466944VeebleFetzer@216.250.188.141>

Show Full Headers
Complete Article Headers
Message-ID: <slrn20100930130743.632.twooffive@may.eternal-september.org>
Subject: Re: [Xnews] Looking for regex help - 20 CAPITAL letters in subject header?
Date: Thu, 30 Sep 2010 13:13:54 -0400
From: Mike Yetto <myetto1@nycap.invalid>
References: <Xns9E0350120FCD5bookwight@207.246.207.159> <Xns9E03730466944VeebleFetzer@216.250.188.141>
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!newsfeed00.sul.t-online.de!t-online.de!news.buerger.net!newsfeed.datemas.de!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: slrn Mafia / Xnews Tong (emeritus)
Lines: 38
Injection-Date: Thu, 30 Sep 2010 17:24:08 +0000 (UTC)
Injection-Info: may.eternal-september.org;
 posting-host="1z8PimweGQFqRWSFYXh1Rw";
 logging-data="7641"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX19yX61SOJnlt28vjmMIWLDsmV61vT6RMF8="
User-Agent: slrn/pre1.0.0-24/co (Kubuntu 10.04; 64bit)
X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/
X-No-Bananas: Yes
Cancel-Lock: sha1:chkeGbZzlz92QXbAS46zYoVo3F8=
 sha1:a2m/eqJDVoA3UBfJhPCcpwF0D4w=
X-Original-Bytes: 2353