Article View: news.software.readers
Article #240810Re: Xnews score file / regex help request
From: John Wunderlich
Date: Mon, 10 May 2010 19:29
Date: Mon, 10 May 2010 19:29
45 lines
2332 bytes
2332 bytes
Graham Tanner <graham.tanner1@virgin.net> wrote in news:Xns9D74BD86CD20Dgrahamtanner1virginn@69.16.176.253: > 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. > You could try this: Score: -9999 Subject: \'\d+\' of \'\d+\' This will match the single quote (\'); followed by a decimal number 0-9 (\d) potentially repeated (+); followed by a quote (\') then space-of- space, then a repeat of a decimal number in quotes. HTH, John
Technical Details
Message-ID:
<Xns9D747F264EE6wunderpsdrscray@138.125.254.103>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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bos-service1.raytheon.com!bos-service2b.ext.ray.com.POSTED!53ab2750!not-for-mailReferences:
<Xns9D6BCC78223AEwIVEjAZz5Nidi@85.214.78.28> <Xns9D74BD86CD20Dgrahamtanner1virginn@69.16.176.253>Show Full Headers
Complete Article Headers
Message-ID: <Xns9D747F264EE6wunderpsdrscray@138.125.254.103> Subject: Re: Xnews score file / regex help request Date: Mon, 10 May 2010 19:29:56 GMT From: John Wunderlich <jwunderlich@lycos.com> 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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!bos-service1.raytheon.com!bos-service2b.ext.ray.com.POSTED!53ab2750!not-for-mail Newsgroups: news.software.readers User-Agent: Xnews/2006.08.24 Lines: 45 NNTP-Posting-Host: 147.19.113.200 X-Complaints-To: news@ext.ray.com X-Trace: bos-service2b.ext.ray.com 1273519796 147.19.113.200 (Mon, NNTP-Posting-Date: Mon, 10 May 2010 19:29:56 UTC Organization: Raytheon Company