🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #178286

Re: [slrn] regexp for scoring indirect replies

#178286
From: Peter J Ross
Date: Wed, 21 Dec 2005 22:00
40 lines
2427 bytes
On 21 Dec 2005 21:27:46 GMT, DC <dcmoose@myrealbox.com> wrote in
news.software.readers:

> »Q« wrote:
>> DC <dcmoose@myrealbox.com> wrote in
>> <news:slrndqh787.a9n.dcmoose@moosemeat.ca.INVALID>:
>
>>> Mine: moosemeat\.ca\.INVALID>([\s]<.*>){1,2}$
>
>>> my mid followed by (a space, then an lt, any number of chars, gt)
>>> one or two times max to the end of the string.
>
>>> AH!  The chars need to be alphanumeric... hmmmm.
>
>>> Wait, I have to work on this some more...  back later.  }:O)
>
>> I think the greediness of .* will make the <.*> match a bunch of MIDS
>> rather than just one at a time.  Maybe <[^>]*> will help.
>
> Yeah, hence my "AH!" (above).  }:O)
>
> I haven't time to look at it tonight.  Maybe tomorrow.  If I get it
> working, I'll let y'all know, mkay?

»Q«'s method works for me:

Score: 100
	Message-Id: pjr@nntp\.petitmorte\.net>$
Score:: 5
	References: pjr@nntp\.petitmorte\.net>$
        References: pjr@nntp\.petitmorte.net> <[^>]*>$
        References: pjr@nntp\.petitmorte.net> <[^>]*> <[^>]*>$

This also resolves my struggle to convert html fragments to text
without losing chunks of the text. »Q« *rules*!

PJR :-)
-- 
alt.usenet.kooks award-winners and FAQ:
<http://www.insurgent.org/~kook-faq/>
Technical Details
Message-ID: <slrndqjk5k.fj6.pjr@nntp.petitmorte.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!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!shaw.ca!news.alt.net!nntp.petitmorte.net!not-for-mail
References: <slrndqgcs7.7sq.dcmoose@moosemeat.ca.INVALID> <20051221081048@usenet.piggo.com> <slrndqh787.a9n.dcmoose@moosemeat.ca.INVALID> <MrQ973396311654FitsmeitsQ@QsFQDN.dyndns.org> <slrndqjic7.8k2.dcmoose@moosemeat.ca.INVALID>

Show Full Headers
Complete Article Headers
Message-ID: <slrndqjk5k.fj6.pjr@nntp.petitmorte.net>
Subject: Re: [slrn] regexp for scoring indirect replies
Date: Wed, 21 Dec 2005 22:00:40 GMT
From: Peter J Ross <pjr@kookbusters.org>
References: <slrndqgcs7.7sq.dcmoose@moosemeat.ca.INVALID> <20051221081048@usenet.piggo.com> <slrndqh787.a9n.dcmoose@moosemeat.ca.INVALID> <MrQ973396311654FitsmeitsQ@QsFQDN.dyndns.org> <slrndqjic7.8k2.dcmoose@moosemeat.ca.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!pd7cy2so!shaw.ca!news.alt.net!nntp.petitmorte.net!not-for-mail
Newsgroups: news.software.readers
Organization: Cabal Obsidian Order [TINCOO]
Lines: 40
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Operating-System: Debian GNU/Linux (Sid/Unstable)
X-Kernel: Linux 2.6.14-2-686
User-Agent: slrn/0.9.8.1pl1 (Debian) Hamster/2.0.7.0