🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #57915

Re: slrn / score / specifying pattern

#57915
From: J.B. Nicholson-Owens
Date: Fri, 11 Feb 2000 00:00
53 lines
2459 bytes
I wrote:
>     Score: =-9999

I should have written "Score::" there--two colons means 'or'.

I wrote:
>        Subject: ^fa[ \t]+
>        Subject: \<f\.[sa]\.:?\>
>        Subject: \<f[sa]:

Kludge replied:
> Thanks.  I'll use'em instead of mine (below) after I understand them in
> full.  <g>

I'm going to guess the tricky bit is the second one (I admit, it looks 
more like line noise than the other two).  Hopefully this will help you  
parse it:

  \<         beginning of word
  f\.        matches "F." or "f." (slrn's scoring regexes are
             case-insensitive by default).  That's a literal dot, by the
             way, not a metacharacter.
  [sa]\.     matches "S.", "s.", "a." or "A."
  :?         an optional colon
  \>         end of word

> What is working for me at this time:
>  [rec.radio.amateur.*]
>   Score:: =-9999
>   Subject: ^fs\>
>   Subject: Re\:\ fs
>   Subject: fs\:
>   Subject: f\.s\.
>   Subject: fa\:
>   Subject: ^fa\>

When you get into the swing of reading regexes you'll see how much 
shorter those can be.

> (I guess I don't need to 'escape' a blank there.)

You only need to specify what kind of whitespace you mean and how much 
whitespace you want to match.  A single space character matches only 
that.  "[ \t]+" matches at least one tab or space (including neighboring 
mixtures of both tab and space).

> Crude -- no doubt.

You want crude?  Use a GUI newsreader for a while.  I have yet to see a 
GUI newsreader that is good for anything but casual infrequent reading.  
Editing this post was way more difficult than it should have been.

Technical Details
Message-ID: <jbn-D4A063.00065311022000@news>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn8a6ctb.89g.X@animas.frontier.net> <jbn-278A18.21404410022000@news> <slrn8a74ej.1fn.X@animas.frontier.net>

Show Full Headers
Complete Article Headers
Message-ID: <jbn-D4A063.00065311022000@news>
Subject: Re: slrn / score / specifying pattern
Date: Fri, 11 Feb 2000 00:00:00 +0000
From: "J.B. Nicholson-Owens" <jbn@mystery-train.pdnt.com>
References: <slrn8a6ctb.89g.X@animas.frontier.net> <jbn-278A18.21404410022000@news> <slrn8a74ej.1fn.X@animas.frontier.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.mbox.zip!not-for-mail
X-Deja-AN: 584434670
X-Complaints-To: abuse@pdnt.com
X-Trace: sol.pdnt.net 950248903 209.16.217.234 (Fri, 11 Feb 2000 00:01:43 CST)
User-Agent: MT-NewsWatcher/3.0 (PPC)
NNTP-Posting-Date: Fri, 11 Feb 2000 00:01:43 CST
Newsgroups: news.software.readers