🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #120607

Re: [Xnews] Regular expression scoring help?

#120607
From: Murray Peterson
Date: Sat, 22 Feb 2003 17:40
45 lines
2705 bytes
Tech Zero <spamail@dragonfur.ca> wrote in
news:Xns932A364597E68Insomniac@130.133.1.4: 

> The voice of "Murray Peterson" drifted in on the cyber-winds, 
> from the sea of virtual chaos...
> 
>> Say X is 50, this will kill any subject that length or longer that
>> has no space character (which is what I assume you want):
>> 
>> Score:: -9999
>> Subject: [^ ]{50,}
> 
> 
> That would kill the first post, but not the replies.
> 
> Then again, it looks like your looking for post that doesn't contain a
> space in the first 50 or more characters.

Actually, that expression does not look for the "first" part at all -- it 
is merely matching any string of length X that contains no space character.  
Are you confusing the "^" with its other use?

> Since the value of "X" (50)
> in that entry is immaterial, setting it to say 20 is just as safe.

I was merely using 50 as an example value.  20 would certainly qualify as 
another exemplary value.
 
> Another way to do it would be to use the "non space" wildcard along
> with a possible starts with "Re: ". This will catch all replies as
> well unless they change the subject:
> 
>   Score: -9999
>     Subject: ^(Re: )?\S{20,}

No need to match the "Re:", since it is irrelevant to the match.  The rule:
    	Score:: -9999
    	Subject: \S{20,}
is simpler and works for replies as well as originals.

-- 
Murray Peterson
Email: murray_peterson@shaw.ca (remove underscore)
URL:   http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID: <Xns932A6CE894FDfarkle@24.71.223.159>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!gestalt.direcpc.com!telocity-west!DIRECTV!203.109.225.2!nntp-relay.ihug.net!ihug.co.nz!out.nntp.be!propagator-sanjose!news-in-sanjose!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail
References: <Xns9328ED0A14845sethralavode@68.1.17.6> <Xns9328F0E3F498farkle@24.71.223.159> <Xns932A364597E68Insomniac@130.133.1.4>

Show Full Headers
Complete Article Headers
Message-ID: <Xns932A6CE894FDfarkle@24.71.223.159>
Subject: Re: [Xnews] Regular expression scoring help?
Date: Sat, 22 Feb 2003 17:40:49 GMT
From: Murray Peterson <mwp@home.com.invalid>
References: <Xns9328ED0A14845sethralavode@68.1.17.6> <Xns9328F0E3F498farkle@24.71.223.159> <Xns932A364597E68Insomniac@130.133.1.4>
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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!gestalt.direcpc.com!telocity-west!DIRECTV!203.109.225.2!nntp-relay.ihug.net!ihug.co.nz!out.nntp.be!propagator-sanjose!news-in-sanjose!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news1.calgary.shaw.ca.POSTED!not-for-mail
X-Trace-PostClient-IP: 68.145.202.240
Newsgroups: news.software.readers
Organization: None
User-Agent: Xnews/06.02.14
Lines: 44
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse@shaw.ca
X-Trace: news1.calgary.shaw.ca 1045935649 24.71.223.147 (Sat, 22 Feb 2003 10:40:49 MST)
NNTP-Posting-Date: Sat, 22 Feb 2003 10:40:49 MST