🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #249309

Re: [Xnews] score file question

#249309
From: Mike Yetto
Date: Sat, 17 Mar 2012 15:24
48 lines
3405 bytes
Gene E  Bloch <blochxxxx@someplace.invalid> writes and having writ moves on.
>On 3/16/2012, Mike Dee posted:
>> Gene E. Bloch wrote:

>>> How does your filter respond if the first, or maybe I mean the only, 
>>> character of the subject is lower case?

>> If the subject was, for example:

>> HELP!!!! MY KEYBOARD KEePS JAMMING INTERMITTEDLY IN uPPEr CASE!!!!!

>> The filter would trigger on the 1st lower case letter (the "e" in 
>> "KEePS" in the above example) - It wouldn't seek past that point 
>> because its test is to find one lower case letter (and not kill it if 
>> it finds one).

>OK.

>I'm rusty on REs in general, and I haven't tried it in Xnews for a very 
>long time, so I was wondering if your RE would respond only to a post 
>whose subject is a single lower case character. I don't have Xnews 
>installed to try it for myself.

>As a reminder, your RE was this:
>"~Subject= [a-z]"

>which seems to me to say "any Subject which is not a single character 
>consisting of one of the letters a-z".

With "~Subject= [a-z]" the subject can contain a single lowercase
character anywhere. To check that it is only a single lowercase
character use "~Subject= ^[a-z]*$" and for nothing but lowercase
characters use "Subject= ^[A-Z]*$".

The second example requires the Subject to start and end with a
string of single lowercase characters in order to fail the test
and the third requires that the subject is only uppercase
characters to pass the test. The "^" indicates the start and the
"$" indicates the end of the string to be tested.

The first and third are close if you disregard numbers and
punctuation. Whichever way you go, you can always test the regex
without leaving Xnews.

Mike "regex can be even more confusing if you try" Yetto
-- 
In theory, theory and practice are the same.
In practice they are not.
Technical Details
Message-ID: <slrn20120317110707.638.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
References: <XnsA01888C1FC5Amikedee@emteedee.invalid> <9sfhfcFm5nU1@mid.individual.net> <XnsA0195228D73mikedee@emteedee.invalid> <9shseqFm2oU1@mid.individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrn20120317110707.638.twooffive@may.eternal-september.org>
Subject: Re: [Xnews] score file question
Date: Sat, 17 Mar 2012 11:24:06 -0400
From: Mike Yetto <myetto1@nycap.invalid>
References: <XnsA01888C1FC5Amikedee@emteedee.invalid> <9sfhfcFm5nU1@mid.individual.net> <XnsA0195228D73mikedee@emteedee.invalid> <9shseqFm2oU1@mid.individual.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.20140922.mbox.gz!border1.nntp.ams3.giganews.com!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
Newsgroups: news.software.readers
Organization: slrn Mafia / Xnews Tong (emeritus)
Lines: 48
Injection-Info: may.eternal-september.org;
 posting-host="xGKpppg/qGlWwUXu8fNPTA";
 logging-data="10712"; mail-complaints-to="abuse@eternal-september.org";
 posting-account="U2FsdGVkX1/spGDHzCeVhEuKvXVvS94VH7YRyyw8/i0="
User-Agent: slrn/pre1.0.0-26/co (Linux; 64bit)
X-The-Usenet-Improvement-Project: http://twovoyagers.com/improve-usenet.org/
X-No-Bananas: Yes
Cancel-Lock: sha1:TsRjaN6ViYwy81PynfMlwv7JRRo=
 sha1:nRBggk9KVMCwSXP8nolKYn+voa4=
X-Original-Bytes: 3108