Article View: news.software.readers
Article #249276Re: [Xnews] score file question
From: John Wunderlich
Date: Fri, 16 Mar 2012 05:08
Date: Fri, 16 Mar 2012 05:08
40 lines
2567 bytes
2567 bytes
Mike Dee <mikedee@emteedee.invalid> wrote in news:XnsA01888C1FC5Amikedee@emteedee.invalid: > There is a simple example given in the Xnews "scoring.txt" for > scoring against posts without a lower case letter in a subject title > >> -------- >> [.] >> Score: -9999 >> ~Subject= .*[a-z] >> -------- > > I've been using "~Subject= [a-z]" without the preceding ".*" for > some time and there doesn't seem to be any problem with that. I > haven't seen any all caps subjects in a long time. > > My question is why the ".*" in front of [a-z] in the scoring.txt > example? Am I missing something or haven't there been any full cap > subjects posted in the last 2 or 3 years? - Maybe just not to the > groups I visit ;-) > > Not trying to shave off a zillionth of a nano second running this > score rule, only it doesn't seem to serve any real purpose to me > (the ".*" part of it). > You're right. In Xnews, the two expressions are functionally exactly equivalent. Being that Xnews will search for the given expression anywhere within the [Subject], your expression of "[a-z]" will match any subject containing a lower case letter. The expression ".*[a- z]" will match any [Subject] containing a lower case letter preceeded by zero or more characters -- which is exactly the same. Of course the ~ in front of "Subject" negates the result and the "=" makes the expression case sensitive. HTH, JW
Technical Details
Message-ID:
<XnsA017E134562C9wunderpsdrscray@216.151.153.39>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.ams.giganews.com!nntp.giganews.com!xlned.com!feeder7.xlned.com!news2.euro.net!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!81.171.88.15.MISMATCH!lightspeed.eweka.nl!81.171.88.16.MISMATCH!eweka.nl!hq-usenetpeers.eweka.nl!news.astraweb.com!border5.a.newsrouter.astraweb.com!not-for-mailReferences:
<XnsA01888C1FC5Amikedee@emteedee.invalid>Show Full Headers
Complete Article Headers
Message-ID: <XnsA017E134562C9wunderpsdrscray@216.151.153.39> Subject: Re: [Xnews] score file question Date: Thu, 15 Mar 2012 22:08:18 -0700 From: John Wunderlich <jwunderlich@lycos.com> References: <XnsA01888C1FC5Amikedee@emteedee.invalid> 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.ams.giganews.com!nntp.giganews.com!xlned.com!feeder7.xlned.com!news2.euro.net!82.197.223.103.MISMATCH!feeder3.cambriumusenet.nl!feed.tweaknews.nl!81.171.88.15.MISMATCH!lightspeed.eweka.nl!81.171.88.16.MISMATCH!eweka.nl!hq-usenetpeers.eweka.nl!news.astraweb.com!border5.a.newsrouter.astraweb.com!not-for-mail Newsgroups: news.software.readers User-Agent: Xnews/2009.05.01 Lines: 40 Organization: Unlimited download news at news.astraweb.com NNTP-Posting-Host: 9cf537cb.news.astraweb.com X-Trace: DXC=bO_nMm:J^; =hZ4>`7BGPo4L?0kYOcDh@:hVEa2I:[mS:K2QE_oLHA[3Se; KV\Qh<T2IQ24ckP:\]78Y@VYHa]Lk=\1@PF?g\3c2VmdWH9Og:59