Article View: news.software.readers
Article #249337Re: [Xnews] score file question
From: Gene E. Bloch
Date: Sun, 18 Mar 2012 22:40
Date: Sun, 18 Mar 2012 22:40
49 lines
3072 bytes
3072 bytes
On 3/17/2012, ยปQยซ posted: > On Sat, 17 Mar 2012 12:07:12 -0700 > Gene E. Bloch <blochxxxx@someplace.invalid> wrote: >> On 3/16/2012, Mike Dee posted: >>>>> 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". >>>> >>>> I should have said "seems ... to say" in the past tense, i.e., >>>> s/seems/seemed/ >>>> >>>> Between what your wrote above and other posts in this thread, I >>>> can only say that "I'm rusty on REs" is overly optimistic on my >>>> part. >> >>> I'm more than a little rusty. >> >>> But, yes, the score rule will pick up on a single lower case >>> character (the 1st one it finds) and stop running at that point as >>> it has then "done its job". >> >> What I thought was that the RE would choose a post consisting only of >> a single character, rather than containing the single character. >> >> That might actually be true of the REs in Unix in the 80s or 90s, >> when I had an idea what I was doing. Or maybe I'm wrong even there :-) > Xnews will check every substring of the Subject against the regex, and > if any substring matches, the rule matches. (Well, with ~Subject, the > rule matches if *no* substring of the Subject matches the regex.) > To make Xnews match only the whole string, ^ and $ are needed, e.g. > ^[a-z]$ to match a Subject consisting of one lower case letter and > nothing else. Which is why I said "what I thought" - but I should have said "what I had thought" for better grammatical clarity. What it is, is that I am learning something in this subthread :-) Which I will try to remember :-) -- Gene E. Bloch (Stumbling Bloch)
Technical Details
Message-ID:
<9sn6i5F7bbU1@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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<XnsA01888C1FC5Amikedee@emteedee.invalid> <9sfhfcFm5nU1@mid.individual.net> <XnsA0195228D73mikedee@emteedee.invalid> <9shseqFm2oU1@mid.individual.net> <9shtckFsrdU1@mid.individual.net> <XnsA01990225C008mikedee@emteedee.invalid> <9sk5muFs4hU1@mid.individual.net> <20120317165803.65032752@fuchsia.remarqs.net>Show Full Headers
Complete Article Headers
Message-ID: <9sn6i5F7bbU1@mid.individual.net> Subject: Re: [Xnews] score file question Date: Sun, 18 Mar 2012 15:40:04 -0700 From: Gene E. Bloch <blochxxxx@someplace.invalid> References: <XnsA01888C1FC5Amikedee@emteedee.invalid> <9sfhfcFm5nU1@mid.individual.net> <XnsA0195228D73mikedee@emteedee.invalid> <9shseqFm2oU1@mid.individual.net> <9shtckFsrdU1@mid.individual.net> <XnsA01990225C008mikedee@emteedee.invalid> <9sk5muFs4hU1@mid.individual.net> <20120317165803.65032752@fuchsia.remarqs.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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 49 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net O+PZznFyVr58YwwNWHuxxgLCsWQ1VOFaEiwZrvhn+TxC6ioATw Cancel-Lock: sha1:N6If3yPLGw8GwkEiheXn1fPB8Sc= X-Newsreader: MesNews/1.08.03.00-gb X-ICQ: 543516788 X-Original-Bytes: 2777