Article View: news.software.readers
Article #39310Re: [slrn] Double colon usage, matching whole words in scorefile
From: Heikki Kantola
Date: Wed, 04 Mar 1998 00:00
Date: Wed, 04 Mar 1998 00:00
38 lines
2324 bytes
2324 bytes
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. >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\> >2) How do I search for this *particular* string of capital letters? >The faq only mentions how to score files that do or don't have capital >letters in them. 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>. -- Heikki "Hezu" Kantola, <Heikki.Kantola@IKI.FI> L�hett�m�ll� mainoksia tai muuta asiatonta s�hk�postia yll� olevaan osoitteeseen sitoudut maksamaan oikolukupalvelusta FIM500 alkavalta tunnilta.
Technical Details
Message-ID:
<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-mailReferences:
<slrn6fr49j.phs.jan@obed-le0.cs.ualberta.ca>Show Full Headers
Complete Article Headers
Message-ID: <slrn6frfm6.5ls.hezu@tuuri.ling.helsinki.fi> Subject: Re: [slrn] Double colon usage, matching whole words in scorefile Date: Wed, 04 Mar 1998 00:00:00 +0000 From: hezu@iki.fi (Heikki Kantola) References: <slrn6fr49j.phs.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-mail X-Deja-AN: 330938518 Content-Transfer-Encoding: 8bit Mime-Version: 1.0 Mail-Copies-To: never Content-Type: text/plain; charset=iso-8859-1 Organization: Department of General Wizardry, Unseen University, Ankh-Morpork Newsgroups: news.software.readers