Thread View: news.software.readers
3 messages
3 total messages
Started by s. keeling
Thu, 08 Apr 2004 19:03
slrn Score regexps & special chars.
Author: s. keeling
Date: Thu, 08 Apr 2004 19:03
Date: Thu, 08 Apr 2004 19:03
25 lines
2007 bytes
2007 bytes
Hi. I've been backslashing/escaping special chars ([-$\&] & etc.) in
my Score file, but I've just found it doesn't appear to be working the
way I thought it should. In the past, I've looked at others' Score
files when they were posted (thanks!), but I can't remember seeing any
that used (and explained) regexp usage. Can anyone post a URL for an
slrn regexp tutorial?
I was using:
[comp.mail.*]
Score:: =-9999
Subject: challenge\-response
Subject: Anti\-C\-R
and etc., yet I see many messages this has apparently ignored, leading
me to question whether I really understand this.
Thanks.
--
Any technology distinguishable from magic is insufficiently advanced.
(*) http://www.spots.ab.ca/~keeling
- - Spammers! http://www.spots.ab.ca/~keeling/spammers.html
http://learn.to/quote http://www.netmeister.org/news/learn2quote.html
Re: slrn Score regexps & special chars.
Author: s. keeling
Date: Thu, 08 Apr 2004 19:36
Date: Thu, 08 Apr 2004 19:36
27 lines
2421 bytes
2421 bytes
On 8 Apr 2004 19:03:47 GMT, s. keeling <keeling@spots.ab.ca>: > Hi. I've been backslashing/escaping special chars ([-$\&] & etc.) in > my Score file, but I've just found it doesn't appear to be working the > way I thought it should. In the past, I've looked at others' Score > files when they were posted (thanks!), but I can't remember seeing any > that used (and explained) regexp usage. Can anyone post a URL for an > slrn regexp tutorial? > > I was using: > > [comp.mail.*] > Score:: =-9999 > Subject: challenge\-response > Subject: Anti\-C\-R Sigh. It turns out that another recipe had already marked it, and that used an equals sign, which means mark and stop marking. So, having fixed that I now can start to test this correctly. I'd still like to see any pointers to slrn Score regexp tutorials if you have them. -- Any technology distinguishable from magic is insufficiently advanced. (*) http://www.spots.ab.ca/~keeling - - Spammers! http://www.spots.ab.ca/~keeling/spammers.html http://learn.to/quote http://www.netmeister.org/news/learn2quote.html
Re: slrn Score regexps & special chars.
Author: Jörg Lüders
Date: Fri, 09 Apr 2004 08:48
Date: Fri, 09 Apr 2004 08:48
29 lines
2221 bytes
2221 bytes
s. keeling <keeling@spots.ab.ca>: > Hi. I've been backslashing/escaping special chars ([-$\&] & etc.) in > my Score file, but I've just found it doesn't appear to be working the > way I thought it should. - isn't special except in a [range], and & not at all AFAIK. > In the past, I've looked at others' Score files when they were posted > (thanks!), but I can't remember seeing any that used (and explained) > regexp usage. Can anyone post a URL for an slrn regexp tutorial? It's in the FAQ: | 4.5. Where can I get a full description of slrn's regular expres- | sions? | | | slrn makes use of the regexp engine built into the slang programmer's | library. Thus, a full description of the regexp syntax that can be | used in slrn's scorefiles can be found in the documentation of slang. | In version 1.4.4, this is chapter 18 of the file slang.txt (also | available online | <http://space.mit.edu/~davis/slang/doc/html/slang-18.html>). Please | note that in slrn, the default is \C (case insensitive), not \c. Jörg
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