Article View: news.software.readers
Article #143891Re: slrn scorefile syntax and avoiding unnecessary backtracking in regular expressions
From: Mike Vanecek
Date: Fri, 20 Feb 2004 00:28
Date: Fri, 20 Feb 2004 00:28
36 lines
2333 bytes
2333 bytes
On 18 Feb 2004 22:11:02 GMT, J.B. Nicholson-Owens wrote: > Mike Vanecek wrote: >> I have a fixed.score of >> %BOS 07/30/03 >> [~*binaries*], [*] > The line with square brackets is not in the correct syntax. To say what I > think you're trying to say (all newsgroups except those that match > "*binaries*"), you can say: > [~ *binaries*] It was scoring the 1000. I assume then that it was ignoring the not binaries and scoring on all groups? I have changed it to the above. > followed by the rest of your score entry. >> X-Original-References: .*@news\.invalid\.99computer* > You should consider dropping the ".*" there--slrn will score faster without > it because that will cause much unnecessary backtracking. Also, do you > really mean to say "0 or more r's" at the end of "computer"? Dropped the .* ... I wanted it to say computer followed by anything. Zero or more r's accidently seems to work, but I guess that is not the syntax needed. Regular expressions drive me up the wall, as you can tell. I guess I could just drop the * and let it go? > Happy newsreading. Thank you for the suggestions and improvements. -- Thanks, Mike.
Technical Details
Message-ID:
<mi0gg1-up8.ln1@news.invalid.99computer>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!nx02.iad01.newshosting.com!newshosting.com!c03.atl99!news.usenetserver.com!newscene!novia!novia!sequencer.newscene.com!not-for-mailReferences:
<c07sq5$4st$1@custnews.inweb.co.uk> <c08167$5og$1@custnews.inweb.co.uk> <slrnc2fihf.a5.no.spam@thurston.blinkynet.net> <nnqpf1-54l.ln1@news.invalid.99computer> <102lg2j58bs3323@news.supernews.com> <q9fcg1-ric.ln1@news.invalid.99computer> <slrnc37p80.svg.jbn@forestfield.org>Show Full Headers
Complete Article Headers
Message-ID: <mi0gg1-up8.ln1@news.invalid.99computer> Subject: Re: slrn scorefile syntax and avoiding unnecessary backtracking in regular expressions Date: Fri, 20 Feb 2004 00:28:08 +0000 From: Mike Vanecek <MikeV99@privacy.net> References: <c07sq5$4st$1@custnews.inweb.co.uk> <c08167$5og$1@custnews.inweb.co.uk> <slrnc2fihf.a5.no.spam@thurston.blinkynet.net> <nnqpf1-54l.ln1@news.invalid.99computer> <102lg2j58bs3323@news.supernews.com> <q9fcg1-ric.ln1@news.invalid.99computer> <slrnc37p80.svg.jbn@forestfield.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!intern1.nntp.aus1.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!elnk-atl-nf1!newsfeed.earthlink.net!nx02.iad01.newshosting.com!newshosting.com!c03.atl99!news.usenetserver.com!newscene!novia!novia!sequencer.newscene.com!not-for-mail Newsgroups: news.software.readers Lines: 36 X-Archive: encrypt User-Agent: slrn/0.9.8.0 (Linux)