Article View: news.software.readers
Article #216506Re: [Leafnode] Filter for cigs?
From: Gene E. Bloch
Date: Tue, 05 Feb 2008 23:19
Date: Tue, 05 Feb 2008 23:19
63 lines
3625 bytes
3625 bytes
On 2/04/2008, Peter J Ross posted this: > In news.software.readers on Mon, 04 Feb 2008 20:02:31 -0800, Blinky > the Shark <no.spam@box.invalid> wrote: > >> 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. > > True, but there's no harm in giving examples of how to use the syntax > for use in cases when it's necessary. > >> Without them, the last (Q's) syntax woud've worked on that. > > It would also work in this form: > > pattern = ^Subject:.*(?i)\b(buy)?cigarett(es?)?\b > > But there's probably absolutely nothing wrong with something like: > > pattern = ^Subject:.*(?i)cigarett > > until somebody decides to write a newsreader called "scigaretto" or > something. :-) To add very little to the whole discussion, or you could say, to take away very little :-), may I point out that some people spell the offending term "cigaret", as well as "cigarets" in the plural? Not to mention cigareets and whuskey and wild, wild women. -- Gene E. Bloch (Gino) letters617blochg3251 (replace the numbers by "at" and "dotcom")
Technical Details
Message-ID:
<mn.2b977d82c99812be.1980@nobody.invalid>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!newsfeed.kamp.net!newsfeed.kamp.net!news.motzarella.org!motzarella.org!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> <pan.2008.02.05.04.02.30.346854@thurston.blinkynet.net> <slrnfqfv9d.8jl.pjr@pjr.gotdns.org>Show Full Headers
Complete Article Headers
Message-ID: <mn.2b977d82c99812be.1980@nobody.invalid> Subject: Re: [Leafnode] Filter for cigs? Date: Tue, 05 Feb 2008 15:19:04 -0800 From: Gene E. Bloch <spamfree@nobody.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> <pan.2008.02.05.04.02.30.346854@thurston.blinkynet.net> <slrnfqfv9d.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!newsfeed.kamp.net!newsfeed.kamp.net!news.motzarella.org!motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 63 Reply-To: hamburger@NOT_SPAM.invalid Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit X-Trace: feeder.motzarella.org U2FsdGVkX19mrHJ9LkzIi+NmoAl4BoXZE0uedxDWYtxMCP9YDH39pm8xj1E/lqZegUHOy/ShoTckjwJVVCmnloNNcr+CYjPQDxkpr5H2RYflRR97QMQFyPJqACvZXReIkB9ZEyAjvHs= X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Tue, 5 Feb 2008 23:19:04 +0000 (UTC) X-Newsreader: MesNews/1.06.00.00-gb X-Auth-Sender: U2FsdGVkX19EdaIVfu3MMczHQz1x6mQvqCDvXLphPxk= Cancel-Lock: sha1:mgXUA/G4QraH9Y5iIuHoab5kVSE=