Article View: news.software.readers
Article #155359Re: [Xnews] Scoring x-posts
From: me
Date: Fri, 10 Sep 2004 00:38
Date: Fri, 10 Sep 2004 00:38
38 lines
2428 bytes
2428 bytes
»Q« <boxcars@gmx.net> wrote in
»news:MrQ955FC1F7380E0itsmeitsQ@QsFQDN.dyndns.org:
> Murray Peterson <mwp@home.com.invalid> wrote in
> <news:Xns955F8190DB64farkle@24.71.223.159>:
>
>>> 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.
>
> It should still work, using the AND scheme in the OP. I
> think the only problem was that the colon count was off,
> because Xnews ignores one of the Xref groups when scoring
> (as you noted).
>
> Score: 100
> Xref: (.*:){4}
> ~Xref: (.*:){5}
>
> Should score articles with at least 5 Xref'd groups AND not
> more than 5, IOW exactly 5. The greediness of .* shouldn't
> matter here, but there's always .*? when greediness does
> matter.
>
> But I agree with you that it's better to avoid ANDing
> scoring criteria, and I think your single regex solution is
> better.
>
Thanks for the info (learning never ends).
J
--
Replies to: Njk04s_130_p(at)Ojuno(dot)Tcom
Technical Details
Message-ID:
<Xns955FD1F50E1C8metadyataminvalid@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!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-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> <MrQ955FC1F7380E0itsmeitsQ@QsFQDN.dyndns.org>Show Full Headers
Complete Article Headers
Message-ID: <Xns955FD1F50E1C8metadyataminvalid@netnews.worldnet.att.net> Subject: Re: [Xnews] Scoring x-posts Date: Fri, 10 Sep 2004 00:38:59 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> <MrQ955FC1F7380E0itsmeitsQ@QsFQDN.dyndns.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!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!wn14feed!worldnet.att.net!bgtnsc04-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: 38 NNTP-Posting-Host: 12.76.163.57 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1094776739 12.76.163.57 (Fri, NNTP-Posting-Date: Fri, 10 Sep 2004 00:38:59 GMT Organization: AT&T Worldnet