🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #19774

dumb slrn question re regular expressions

#19774
From: Jim Robinson
Date: Fri, 08 Mar 1996 00:00
37 lines
1397 bytes
Using 0.8.6.1 of slrn I would like to score "high" on finding any one of a
number of substrings in the subject line of an article. E.g. if the
subject line contains *any* of "foo", "bar", or "twaddle" I would like the
article marked as interesting. 

I tried this:
 Score: 9999
        Subject: foo|bar|twaddle

and this:
 Score: 9999
        Subject: (foo)|(bar)|(twaddle)

and, even this
 Score: 9999
        Subject: (foo|bar|twaddle)

but none worked.


I realize I could do this:
 Score: 9999
        Subject: foo
        Subject: bar
        Subject: twaddle

But I assume that using a regexp would be more efficient. Is this true?

Would some kind soul please tell me what I am doing wrong?


-- 
Jim Robinson
robinson@mdd.comm.mot.com


Technical Details
Message-ID: <4ho1di$76a@lyorn.mdd.comm.mot.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!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <4ho1di$76a@lyorn.mdd.comm.mot.com>
Subject: dumb slrn question re regular expressions
Date: Fri, 08 Mar 1996 00:00:00 +0000
From: robinson@mdd.comm.mot.com (Jim Robinson)
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: 142103644
Distribution: na
Organization: Motorola - Wireless Data Group; Richmond, BC
Reply-to: robinson@mdd.comm.mot.com (Jim Robinson)
Newsgroups: news.software.readers