🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #121533

Re: [slrn] scoring on subject in replies

#121533
From: Gruebait
Date: Sat, 08 Mar 2003 21:31
38 lines
2463 bytes
On 8 Mar 2003 20:35:24 GMT, someone, possibly J.B. Nicholson-Owens, scribed:
> Allodoxaphobia wrote:
>> KISS:
>>        Score: =-9999
>>        Subject: x.?news
> 
> Do you really want to match "xynews" or "xxnews"?  I think it would be
> simpler to match an optional hyphen "x-?news", but that depends on what one
> is trying to match.
> 
>> Anyway, I think you would've needed to escape the "-", as it
>> is used in some RE constructs.
> 
> Where would you need to escape a hyphen in an S-Lang regular expression?
> Perhaps you were thinking of the location of a hyphen in a character class
> ("[-az]" is not the same as "[a-z]"), but this requires no escaping:
 
 [snip]

The moment I posted a followup (elsewhere in this thread), I realized 
where I acquired the notion that the patterns being matched might 
need regex metacharacters to be escaped - when slrn interactively creates 
an entry in a scorefile, it escapes dots and question-marks with a '\'.

As in:
Subject: Re: The Missing Two Thermal Analysis Cases -- Found\?
                                                            ^
and
From: "KNIGHT TEMPLAR" <mining_pioneer@hotmail\.com>
                                              ^

So, what's up with that?

-- 

 "You are in a maze of twisty passages, all alike." - Will Crowther
perl -e '$_="prxryyl\@qiby.pbz <Cenvt Kryyl>\n";tr/a-z/n-za-m/;print;'
Technical Details
Message-ID: <3e6a6132@news.starnetinc.com>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed.pnap.net!news.starnetinc.com!not-for-mail
References: <3e69f26f@news.starnetinc.com> <slrnb6k7t4.12h.nobody@animas.frontier.net> <slrnb6kmmh.a5p.jbn@forestfield.org>

Show Full Headers
Complete Article Headers
Message-ID: <3e6a6132@news.starnetinc.com>
Subject: Re: [slrn] scoring on subject in replies
Date: Sat, 08 Mar 2003 21:31:30 +0000
From: gruebait@OVERSPAMMED.com (Gruebait)
References: <3e69f26f@news.starnetinc.com> <slrnb6k7t4.12h.nobody@animas.frontier.net> <slrnb6kmmh.a5p.jbn@forestfield.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed-east.nntpserver.com!nntpserver.com!newsfeed1.sea.pnap.net!newsfeed.pnap.net!news.starnetinc.com!not-for-mail
Newsgroups: news.software.readers
Organization: Haphazard
User-Agent: slrn/0.9.7.1 (Linux)
NNTP-Posting-Host: 64.24.17.118
X-Original-NNTP-Posting-Host: 64.24.17.118
X-Trace: news.starnetinc.com 1047159090 64.24.17.118 (8 Mar 2003 15:31:30 -0600)
Lines: 37
X-Complaints-To: abuse@megapop.net