🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #240807

Re: Xnews score file / regex help request

#240807
From: Graham Tanner
Date: Mon, 10 May 2010 17:37
57 lines
2928 bytes
Zars <azoblue@myrealbox.DOTcom> wrote in 
news:Xns9D6BCC78223AEwIVEjAZz5Nidi@85.214.78.28:

> Hello,
> 
> I'm attempting to write a scoring expression for my Xnews score.ini 
> and am not having any success, and I'm even sure what I'm doing 
> wrong. I've read Luu's scoring/regex section, and have also done 
> some fruitless poking around on the web. Perhaps I'm just obtuse.
> 
> Anyway, what I would like is a filter that kills the dollar sign - 
> $ - anywhere in a subject, either by itself, or part of a price, or 
> part of any other string, regardless of whether it appears once or 
> multiple times.
> 
> I know in regex the dollar sign is a special character, but this, 
> as far as I can tell, does absolutely nothing, and I don't know 
> why:
> 
> Subject: \$
> 
> Any regex gurus out there want to share their expertise?
> 
> Many thanks!
> 

Since ZARS appears to have got his Scorefile problem sorted, maybe I 
will use the opportunity to ask a related question of my own ...

I'm also trying to write a scoring expression to weed-out a large number 
of messages which have a fairly regular 'Subject:' line ... but the only 
common part that I can use in my expression already contains single 
quotes.

For example, on one day I will see messages containing ...

blah, blah, '1' of '20'
blah, blah, '2' of '20'
and so on ...

the next day, there will be similar messages, but a different 'of xx' 
number ...

blah, blah, '1' of '45'
blah, blah, '2' of '45'
and so on ...


The only part that is common to all the messages is ---' of '---; that 
is, single quote-space-of-space-single quote.

So, how do I create a regular expression for that string?

Many thanks for any help.

GT,
London.
Technical Details
Message-ID: <Xns9D74BD86CD20Dgrahamtanner1virginn@69.16.176.253>
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!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!feeder.news-service.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe21.ams2.POSTED!7564ea0f!not-for-mail
References: <Xns9D6BCC78223AEwIVEjAZz5Nidi@85.214.78.28>

Show Full Headers
Complete Article Headers
Message-ID: <Xns9D74BD86CD20Dgrahamtanner1virginn@69.16.176.253>
Subject: Re: Xnews score file / regex help request
Date: Mon, 10 May 2010 18:37:52 +0100
From: Graham Tanner <graham.tanner1@virgin.net>
References: <Xns9D6BCC78223AEwIVEjAZz5Nidi@85.214.78.28>
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!border1.nntp.ams3.giganews.com!border2.nntp.ams3.giganews.com!border2.nntp.ams2.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!feeder.news-service.com!feeder.news-service.com!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe21.ams2.POSTED!7564ea0f!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/5.04.25
Lines: 57
NNTP-Posting-Host: 80.4.250.12
X-Complaints-To: http://netreport.virginmedia.com
X-Trace: newsfe21.ams2 1273513070 80.4.250.12 (Mon, 10 May 2010 17:37:50 UTC)
NNTP-Posting-Date: Mon, 10 May 2010 17:37:50 UTC
Organization: virginmedia.com
X-Original-Bytes: 2682