Article View: news.software.readers
Article #155358Re: [Xnews] Scoring x-posts
From: »Q«
Date: Fri, 10 Sep 2004 00:04
Date: Fri, 10 Sep 2004 00:04
30 lines
2477 bytes
2477 bytes
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.
--
»Q«
<http://www.cotse.net/users/putty/help.htm>
a not-quite-ready-for-prime-time guide to
Xnews resources on teh WWW
Technical Details
Message-ID:
<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!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!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: <MrQ955FC1F7380E0itsmeitsQ@QsFQDN.dyndns.org> Subject: Re: [Xnews] Scoring x-posts Date: Fri, 10 Sep 2004 00:04:03 GMT From: »Q« <boxcars@gmx.net> 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!fu-berlin.de!uni-berlin.de!not-for-mail Newsgroups: news.software.readers Organization: we don't need no stinkin' organization Lines: 30 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de mOPfPvfVj8AA+WtinvlnaAcUbHkh5EAMuTyyBKcwZxTt6fO60u X-Orig-X-Complaints-To: <http://www.cybergecko.com/complain.htm> X-Face: *#`F(_&o, GRH~~$V&ByU1LZAWc]JgxuT`Pv2y0`&JE`(=*PcC>#m2]xv]p, i|9mDJ+8dGMJl`V[!z]\N}qrLTHjU]Sew>rQBShT_8.(0Q(iH, Gu7k|y/)^!@oVydVrix*#|-|u2~zgA'U3nQ_fa#jXvcGL[9f:>8?U=hXYK3D~*}Gq$TjPe1WXEFLGTiB3ot!oMH"'(Jop0(\0C