Thread View: news.software.readers
1 messages
1 total messages
Started by Jim Robinson
Fri, 08 Mar 1996 00:00
dumb slrn question re regular expressions
Author: Jim Robinson
Date: Fri, 08 Mar 1996 00:00
Date: Fri, 08 Mar 1996 00:00
37 lines
1397 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads