Article View: news.software.readers
Article #216440Re: [Leafnode] Filter for cigs?
From: Blinky the Shark
Date: Tue, 05 Feb 2008 04:02
Date: Tue, 05 Feb 2008 04:02
40 lines
2588 bytes
2588 bytes
Peter J Ross wrote: > In news.software.readers on Mon, 04 Feb 2008 18:04:23 -0800, Blinky > the Shark <no.spam@box.invalid> wrote: > >> ยปQยซ wrote: >> >>> Peter J Ross <pjr@example.invalid> wrote: >>> >>>> or, more elaborately and probably unnecessarily so: >>>> >>>> pattern = ^Subject:.*(?i)\bcigarett(e|es|)\b >>>> >>>> "(?i)" makes whatever follows case-insensitive. "\b" matches a word >>>> boundary. "(e|es|)" matches "e", "es" or nothing. >>> >>> I'd use (?i)\bcigarett(es?)?\b >>> >>> It shouldn't make much difference, if any -- I'm just bored tonight. > > And this kind of discussion is *fun*! (Well, I think so.) > >> Why are the word boundaries needed? > > I'm sure they aren't in this case. > >> BUYCIGARETTES!!!11!!!!!! > > pattern = ^Subject:.*(?i)\b(buy)?cigarett(e|es|)\b I'm thinking they're not in this case, either. Without them, the last (Q's) syntax woud've worked on that. -- Blinky Killing all posts from Google Groups The Usenet Improvement Project: http://improve-usenet.org Blinky: http://blinkynet.net
Technical Details
Message-ID:
<pan.2008.02.05.04.02.30.346854@thurston.blinkynet.net>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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<20080205092408@ilium.andrews-corner.org> <slrnfqfc11.8jl.pjr@pjr.gotdns.org> <20080204190640.58fe3f7c@bellgrove.remarqs.net> <pan.2008.02.05.02.04.23.549375@thurston.blinkynet.net> <slrnfqfio0.8jl.pjr@pjr.gotdns.org>Show Full Headers
Complete Article Headers
Message-ID: <pan.2008.02.05.04.02.30.346854@thurston.blinkynet.net> Subject: Re: [Leafnode] Filter for cigs? Date: Mon, 04 Feb 2008 20:02:31 -0800 From: Blinky the Shark <no.spam@box.invalid> References: <20080205092408@ilium.andrews-corner.org> <slrnfqfc11.8jl.pjr@pjr.gotdns.org> <20080204190640.58fe3f7c@bellgrove.remarqs.net> <pan.2008.02.05.02.04.23.549375@thurston.blinkynet.net> <slrnfqfio0.8jl.pjr@pjr.gotdns.org> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: http://blinkynet.net http://improve-usenet.org Lines: 40 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net 9vNlciFB5abV/AadCSM+nwJysV2LN0jCiPcP40EuycrkvSMw9E Cancel-Lock: sha1:MkgUlzkXVT0XjNeLqNDP0M9o/Jk= User-Agent: Pan/0.14.2.91 X-Face: Jb-wQ7r&vrN}~8MC5B09S4&.ieh!Q:Di/XN.xrd#CU%; )bPa`Hm^(,3o$n(s75[P+$F+Q^4~Owj`WzkBtZU/#gL2BvEBm/e=/1,R0}d@q@)E X-OS: Mandriva Linux 2006.0; kernel 2.6.12 X-WebTV-Stationery: Standard; BGColor=green; TextColor=green X-The-Usenet-Improvement-Project: http://improve-usenet.org