Article View: news.software.readers
Article #129456Re: [Xnews] regex assistance needed
From: Murray Peterson
Date: Fri, 25 Jul 2003 18:37
Date: Fri, 25 Jul 2003 18:37
29 lines
2151 bytes
2151 bytes
Darrien <Darrien_Lambert@NA._.COM@hotmail.com> wrote in
news:Xns93C34E26ED97CDarrienL@140.99.99.130:
> I'd like to do two things in Xnews.
>
> First, I'd like to kill all articles and their replies where the
> subject line contains all caps. I currently have "~Subject= .*[a-z]"
> in my score file. I've tried modifying it to something like "~Subject=
> .*(re)?[a-z]" and variants, but have had no luck.
The ".*" in your expression will render it useless. .*[a-z]* will match
absolutely any line (0 or more of any character followed by 0 or more of a
through z). Try this instead:
~Subject: [a-z]
Kills any subject that does NOT contain any of the letters a through z.
I'll let you figure out variations that might be of more use to you.
> Secondly, I'd like to kill all articles that come from X days in the
> future. Can this be done with a regex? If not, is there a setting I
> have overlooked?
Regular expressions do not have facilities for date conversions and
comparisons.
--
Murray Peterson
Email: murray_peterson@shaw.ca (remove underscore)
URL: http://members.shaw.ca/murraypeterson/
Technical Details
Message-ID:
<Xns93C381530AB4Bfarkle@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!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mailReferences:
<Xns93C34E26ED97CDarrienL@140.99.99.130>Show Full Headers
Complete Article Headers
Message-ID: <Xns93C381530AB4Bfarkle@24.71.223.159> Subject: Re: [Xnews] regex assistance needed Date: Fri, 25 Jul 2003 18:37:42 GMT From: Murray Peterson <mwp@home.com.invalid> References: <Xns93C34E26ED97CDarrienL@140.99.99.130> 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!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!pd2nf1so.cg.shawcable.net!residential.shaw.ca!news2.calgary.shaw.ca.POSTED!not-for-mail X-Trace-PostClient-IP: 68.145.203.126 Newsgroups: news.software.readers Organization: None User-Agent: Xnews/06.02.16 Lines: 28 NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse@shaw.ca X-Trace: news2.calgary.shaw.ca 1059158262 24.71.223.147 (Fri, 25 Jul 2003 12:37:42 MDT) NNTP-Posting-Date: Fri, 25 Jul 2003 12:37:42 MDT