Article View: news.software.readers
Article #155347Re: [Xnews] Scoring x-posts
From: me
Date: Thu, 09 Sep 2004 19:35
Date: Thu, 09 Sep 2004 19:35
55 lines
3056 bytes
3056 bytes
Murray Peterson <mwp@home.com.invalid> wrote in
news:Xns955F8190DB64farkle@24.71.223.159:
> me@tadyatam.invalid wrote in
> news:Xns955F881CC9AB7metadyataminvalid@netnews.worldnet.att.
> net:
>
>> I'm trying to score posts to 'n' (5) groups, no more, no
>> less.
>
> You need to use something other than ".*", since that will
> eat all characters, including your colon. e.g. (.*:){1}
> will match "a:b:c:d:e", with the ".*" matching "a:b:c:d",
> still leaving one colon for the rest of the regexp.
>
> To get exact counts, you need a regexp that won't go across
> the desired substring boundaries. Something like
> "([^:]+:\d+)", which matches one or more "not colons",
> followed by a colon, followed by one or more digits.
>
> You then need to anchor this repeated substring to the
> start and end of the entire string. This forces the regexp
> to match the entire string, not just some portion of it.
> Using the example of a:b:c:d:e, the regexp "(.:){1}" will
> match, while "^(.:){1}$ will not.
>
> One final note -- the xref field has been "munched" by
> Xnews before being scored, with the current group removed.
> This means your counts will be off by one (Luu does warn
> you about this in the manual).
>
> The score entry that will do what you want looks like this:
>
> Score:: -4001
> Xref: ^([^:]+:\d+){4}$
>
>
>
>> (and "getting to know" regex).
>
> Good luck -- perserverance and practice helps.
>
> A common "gotchas" when scoring in Xnews:
>
> Be careful when using single colons following the Score
> keyword -- the AND operator is not usually what you want
> when scoring, and can cause some grief if yuo aren't
> careful.
>
Thank you very much. Now I have something to "play" with. :)
J
--
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Technical Details
Message-ID:
<Xns955F9E80750AEmetadyataminvalid@netnews.worldnet.att.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!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.telebyte.nl!news.glorb.com!cyclone1.gnilink.net!gnilink.net!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mailReferences:
<Xns955F72BBEC18metadyataminvalid@netnews.worldnet.att.net> <Xns955F6C957AB2Dfarkle@24.71.223.159> <Xns955F881CC9AB7metadyataminvalid@netnews.worldnet.att.net> <Xns955F8190DB64farkle@24.71.223.159>Show Full Headers
Complete Article Headers
Message-ID: <Xns955F9E80750AEmetadyataminvalid@netnews.worldnet.att.net> Subject: Re: [Xnews] Scoring x-posts Date: Thu, 09 Sep 2004 19:35:27 GMT From: me@tadyatam.invalid References: <Xns955F72BBEC18metadyataminvalid@netnews.worldnet.att.net> <Xns955F6C957AB2Dfarkle@24.71.223.159> <Xns955F881CC9AB7metadyataminvalid@netnews.worldnet.att.net> <Xns955F8190DB64farkle@24.71.223.159> 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!number1.nntp.dca.giganews.com!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news2.telebyte.nl!news.glorb.com!cyclone1.gnilink.net!gnilink.net!wn11feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!53ab2750!not-for-mail Newsgroups: news.software.readers User-Agent: Xnews/06.08.25 X-No-Archive: yes Lines: 55 NNTP-Posting-Host: 12.76.166.212 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1094758527 12.76.166.212 (Thu, NNTP-Posting-Date: Thu, 09 Sep 2004 19:35:27 GMT Organization: AT&T Worldnet