Do Regex Character Classes Work in SLRN Score File?

Paul Burton <[email protected]>
Newsgroups gmane.network.slrn.user
Message-ID <[email protected]>
I'm trying to downscore posts with subjects like the following:

`OT: blah blah blah'
`Re: OT: blah blah blah'
`[OT] blah blah blah'
`[O.T.]: blah blah ...'

You get the idea.

The problem is that I do not want to inadvertently downscore posts like 
this:

`This subject line is NOT off topic'

Here are the rules I've been playing with trying to get this to work:

#v+

Score:: -9000 %Off Topic
  Subject: \c[[:space:]][^[:alnum:]]?O\.?T\.?[^[:alnum:]]?[[:space:]]
  Subject: \cRe.*[[:space:]][^[:alnum:]]?O\.?T\.?[^[:alnum:]]?[[:space:]]

#v-

I've tried this with the POSIX character classes, as above, and with the 
Perl-style regex equivalents (i.e. `\W' and `\s').


Does SLRN recognize either of these as expected? I've noticed before 
that it doesn't seem to "get" the \b (word boundary) and \s (space 
character) assertions, but is it because there's some extra escapes I 
need to add for the s-lang parser, or what?

For the record, `slrn --version' gives me:

#v+

slrn pre0.9.9-94
         * Note: This version is a developer preview.
S-Lang Library Version: pre2.1.4-12
Compiled at: Feb 12 2008 14:06:44
Operating System: Linux

COMPILE TIME OPTIONS:
  Backends: +nntp -slrnpull -spool
  External programs / libs: -canlock -inews -ssl -uudeview +iconv
  Features: +decoding +emphasized_text +end_of_thread +fake_refs +gen_msgid
     -grouplens -msgid_cache +piping +rnlock +spoilers -strict_from

#v-

-- 

Paul Burton
[email protected]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.