Article View: news.software.readers
Article #39331Re: [slrn] Double colon usage, matching whole words in scorefile
From: Jan Sacharuk
Date: Thu, 05 Mar 1998 00:00
Date: Thu, 05 Mar 1998 00:00
51 lines
2901 bytes
2901 bytes
In article <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi>, Heikki Kantola wrote:
>Jan Sacharuk <jan@dontspamme.cs.ualberta.ca> informed
>news.software.readers with the following:
>>Well, as near as I can tell, the :: usage in the scorefiles is exactly
>>the opposite of what I read in the SCORE_FAQ. Theoretically, the ::
>>was supposed to act as an OR, and the : is the AND, but I've found the
>>behavior to be exactly opposite. And I get the impression that slrn
>>itself knows better when it's creating a score entry. Do I chalk this
>>one up to outdated documentation?
>
>No, I think you must have somehow misread the doc, I can easily
>interpret it so that ":" is AND and "::" is OR.
I also interpreted it that way. However, nothing at all worked until I
took out the extra colon. Now, eveything works perfect. And if you
create a score entry, slrn only uses the ':', not a '::'. That's where
I got it from. Previous to this change, none of my scoring showed up
properly.
>>Also, I want to search for the string 'AMP' in a line, but I don't
>>want it to score things that have 'amp' buried in there. So,
>>
>>1) How do I get slrn to search for a word on its own, not embedded?
>
>\<word\>
Thanks. :)
>That answer gives sort of answer, with "\c" you can turn on case
>sensitivity (and "\C" turns it off, which is the default), for example
>your upcase only string should be matched with "\cAMP".
>
>In general, if you want more info about Slrn's regexp syntax, see <URL:
>http://www.math.ohio-state.edu/%7Elahvak/software/slang/regexps.html>.
Double thanks.
Jan Sacharuk
--
**** **** ===== Remove dontspamme from my address to mail me ============
** *** ** GCS d- s++:-- a--- C++++@>$ UISX++>$ P L>++ E>++$ W++ N+ o? K-?
** * ** w---(++++) !O !M V-- PS+>$ PE Y+ !PGP- t- 5+++>++++ X+ R tv--
** j.s ** b++>+++ DI++++ D+ G++(+++)>++++ e>+++ h>$ r++ y+**
** + ** -----------------------------------------------------------------
**v.y** I was in love with Jesus...
** ** but I think I had a crush on Lucifer.
* -Tori Amos
Technical Details
Message-ID:
<slrn6fs8uf.hk8.jan@obed-le0.cs.ualberta.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.mbox.zip!not-for-mailReferences:
<slrn6fr49j.phs.jan@obed-le0.cs.ualberta.ca> <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi>Show Full Headers
Complete Article Headers
Message-ID: <slrn6fs8uf.hk8.jan@obed-le0.cs.ualberta.ca> Subject: Re: [slrn] Double colon usage, matching whole words in scorefile Date: Thu, 05 Mar 1998 00:00:00 +0000 From: jan@dontspamme.cs.ualberta.ca (Jan Sacharuk) References: <slrn6fr49j.phs.jan@obed-le0.cs.ualberta.ca> <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi> 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: 330969746 X-Complaints-To: usenet@pulp.ucs.ualberta.ca X-Trace: pulp.ucs.ualberta.ca 889070543 27006 (None) 129.128.16.56 Organization: University of Alberta Newsgroups: news.software.readers