Article View: news.software.readers
Article #57936Re: slrn / score / specifying pattern
From: Kludge
Date: Fri, 11 Feb 2000 00:00
Date: Fri, 11 Feb 2000 00:00
54 lines
2399 bytes
2399 bytes
On Thu, 10 Feb 2000 21:40:44 -0600, J.B. Nicholson-Owens wrote: >Kludge wrote: <-snip-> >> Subject: ^fa\s % kill Subject lines that start: "fa XYZ-2000..... >> Subject: ^fs\s % kill Subject lines that start: "fs XYZ-2000..... > >I don't know if you know this, but inline comments are not allowed in >S-Lang regular expressions-- Thanks! I had *just* started testing for that in alt.test when I saw your followup here. You're correct, of course. One or 2 example(s) I found out on the web had a few, rare in-line comments. I'll bet it wasn't workin' for them, either. These were the *only* 2 such "commented" regexp's in my score file , and I got very suspicious of that co-incidence. >Try: > > [rec.radio.amateur.*] > Score: =-9999 > Subject: ^fa[ \t]+ > Subject: \<f\.[sa]\.:?\> > Subject: \<f[sa]: > >To kill the for sale and for auction stuff. There are three regexes >instead of two so you won't kill on "fa" or "fs" as a word. I don't >know if that's a concern or not, but better safe than sorry. Thanks. I'll use'em instead of mine (below) after I understand them in full. <g> 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\> ...and a couple'o others. Crude -- no doubt. (I guess I don't need to 'escape' a blank there.) But, testing in alt.test gives me the results I want and no other untoward actions. Regards, Jonesy -- Marvin L Jones jonz--AT>>frontier.net Gunnison, Colorado
Technical Details
Message-ID:
<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-mailReferences:
<slrn8a6ctb.89g.X@animas.frontier.net> <jbn-278A18.21404410022000@news>Show Full Headers
Complete Article Headers
Message-ID: <slrn8a74ej.1fn.X@animas.frontier.net> Subject: Re: slrn / score / specifying pattern Date: Fri, 11 Feb 2000 00:00:00 +0000 From: X@Y.Z.net (Kludge) References: <slrn8a6ctb.89g.X@animas.frontier.net> <jbn-278A18.21404410022000@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 X-Deja-AN: 584412289 X-Complaints-To: news-admin@ivn.net X-Trace: hardcore.ivn.net 950244174 12760 199.45.141.1 (11 Feb 2000 04:42:54 GMT) Organization: Internet Ventures Usenet Services NNTP-Posting-Date: 11 Feb 2000 04:42:54 GMT Newsgroups: news.software.readers