🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #240808

Re: Xnews score file / regex help request

#240808
From: Guy
Date: Mon, 10 May 2010 18:07
30 lines
2569 bytes
Graham Tanner wrote:

> 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?
> 


subject: '\d+' of '\d+'
Technical Details
Message-ID: <9D74857E92EC0EAC2E284CEEC009E394A9D7@127.0.0.1>
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!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!feeder.news-service.com!news.panservice.it!feeder.news.tin.it!194.177.97.95.MISMATCH!x-privat.org!not-for-mail
References: <Xns9D6BCC78223AEwIVEjAZz5Nidi@85.214.78.28> <Xns9D74BD86CD20Dgrahamtanner1virginn@69.16.176.253>

Show Full Headers
Complete Article Headers
Message-ID: <9D74857E92EC0EAC2E284CEEC009E394A9D7@127.0.0.1>
Subject: Re: Xnews score file / regex help request
Date: Mon, 10 May 2010 13:07:22 -0500
From: Guy <Use-Reply-To-Address-Header@[127.1]>
References: <Xns9D6BCC78223AEwIVEjAZz5Nidi@85.214.78.28> <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!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!usenetcore.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!feeder.news-service.com!news.panservice.it!feeder.news.tin.it!194.177.97.95.MISMATCH!x-privat.org!not-for-mail
Newsgroups: news.software.readers
Organization: none
User-Agent: Xnews/2007.02.16
X-No-Archive: yes
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Content-Type: text/plain; charset=ISO-8859-1
Comments: "Whoever would overthrow the liberty of a nation must begin by
 subduing the freeness of speech." -- Benjamin Franklin
X-Face: ,O=kHpT4ofN[ZQ?pgJ6BQtX(cJvPRNtp'pID9gnUbjs4F3yd0#\GOd'S;
 U@<[Y6X*V`vh.)v%U'IaXUBq/F9,m,P; HY{n-Q[V0"+>u5W`Zf&[c;
 34vOB1T~&wE<'yA(Eg7V,W,Sk_gd0JPg1E$,J&X}SN-51Hwg; )hM/Ttq$Um2Kq$u
OpenPGP: id=740405FCD57FDDC1; url=http://guysalias.fateback.com/pgpkeys.txt;
 preference=signencrypt
Reply-To: guysalias <AT> myrealbox <DOT> com
NNTP-Posting-Host: $$-dwkil-qscwq.news.x-privat.org
Lines: 30
X-Authenticated-User: $$14bwdm2x9snwilejn4yfr-pml
X-Complaints-To: abuse@x-privat.org
X-Original-Bytes: 2372