๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #151521

Re: [slrn] Scoring Problem

#151521
From: Mike Vanecek
Date: Sat, 10 Jul 2004 15:13
83 lines
3698 bytes
On 10 Jul 2004 08:19:51 GMT, Tech Zero wrote:
> The voice of "Mike Vanecek" drifted in on the cyber-winds, 
> from the sea of virtual chaos...

>> I have not been able to get {n} or \{n\} to work in slang. Either
>> I am doing it incorrectly or it is not supported as well.

>> Hence, I am not sure how one would do 5 or more repeated
>> characters except x. Also, grouping seems to require \(....\)?
>> Actually, I am not sure how I would do any of the repeating
>> patterns. 


> Desn't seen to be suported in s-lang... Oh well...

>>> I should add, in Xnews:
>>>    "\s" - any whitespace character
>>>    "\S" - any character that is not a whitespace character
>>>    "\w" - any "word" character
>>>    "\W" - any "non-word" character

>>> In order translate these you'd have to use square brackets:

>>>    "[...]" - a set character range

>>> For example; "F[AST]" is equivalent to "FA", "FS", & "FT".

>> and fa fs ft Fa fA and so on ...

>> slrn - \<\cF[AST]\> ?
>> or maybe \c\<F[AST]\>

> I thought it was on default...

> "http://www.s-lang.org/doc/html/slang-18.html"

>    \c        turn on case-sensitivity (default)
>    \C        turn off case-sensitivity

> Dosn't that imply that all exprestions as "Case Sencitive" by default?

Yes, that is what I thought and was confused about the above. Evidently, the
above is not correct.

However, the example in score.txt

Score:: -1000
        ~Subject: \c[a-z]
        {:
          Subject: ^Re:
          ~Subject: ^Re:.*\c[a-z]
        }
                                                                                           

As the result, the example kills subject header lines that do not contain
lowercase characters, not counting an initial "Re:".
                                                                                                    
implies that \c is needed to test for lower case letters implying that case
insensitivity is the default.

Also, this score entry

[news.software.readers]
Score: 555
        Subject: attn

scored this entry correctly --

 2! -  555 [ยปQยซ       ]:  4 Re: Attn: Blinky, Boomer, et al       

All my testing says that slrn/slang defaults to case insensitive.

>> I do not know if slang supports \s etc, but from the other
>> expressions my guess would be not.

>> FS - for sale, FT - for trade, FA - ??

> FA - For Auction


-- 
  Thanks, Mike.
Technical Details
Message-ID: <26d5s1-f7p.ln1@news.invalid.99computer>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!newscene!novia!novia!sequencer.newscene.com!not-for-mail
References: <uvigr1-elj.ln1@news.invalid.99computer> <slrncebcfq.tos.nsr@message-id.wahnes-world.de> <Xns951A8BDE2D306ZeroOne@raven.dragonfur.ca> <rgf0s1-fei.ln1@news.invalid.99computer> <Xns9520943605F9EZeroOne@raven.dragonfur.ca> <1en2s1-ghl.ln1@news.invalid.99computer> <Xns9521807654868ZeroOne@raven.dragonfur.ca> <Xns95218325EBC13ZeroOne@raven.dragonfur.ca> <s9q3s1-nlm.ln1@news.invalid.99computer> <Xns952217B62127CZeroOne@raven.dragonfur.ca>

Show Full Headers
Complete Article Headers
Message-ID: <26d5s1-f7p.ln1@news.invalid.99computer>
Subject: Re: [slrn] Scoring Problem
Date: Sat, 10 Jul 2004 15:13:11 +0000
From: Mike Vanecek <MikeV99@privacy.net>
References: <uvigr1-elj.ln1@news.invalid.99computer> <slrncebcfq.tos.nsr@message-id.wahnes-world.de> <Xns951A8BDE2D306ZeroOne@raven.dragonfur.ca> <rgf0s1-fei.ln1@news.invalid.99computer> <Xns9520943605F9EZeroOne@raven.dragonfur.ca> <1en2s1-ghl.ln1@news.invalid.99computer> <Xns9521807654868ZeroOne@raven.dragonfur.ca> <Xns95218325EBC13ZeroOne@raven.dragonfur.ca> <s9q3s1-nlm.ln1@news.invalid.99computer> <Xns952217B62127CZeroOne@raven.dragonfur.ca>
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!border1.nntp.dca.giganews.com!nntp.giganews.com!newscene!novia!novia!sequencer.newscene.com!not-for-mail
Newsgroups: news.software.readers
Lines: 83
X-Archive: encrypt
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
User-Agent: slrn/0.9.8.0 (Linux)