Article View: news.software.readers
Article #216450Re: [Leafnode] Filter for cigs?
From: Peter J Ross
Date: Tue, 05 Feb 2008 06:07
Date: Tue, 05 Feb 2008 06:07
53 lines
3037 bytes
3037 bytes
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. :-) -- PJR :-)
Technical Details
Message-ID:
<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!news.buerger.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>Show Full Headers
Complete Article Headers
Message-ID: <slrnfqfv9d.8jl.pjr@pjr.gotdns.org> Subject: Re: [Leafnode] Filter for cigs? Date: Tue, 05 Feb 2008 06:07:41 +0000 From: Peter J Ross <pjr@example.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> 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!news.buerger.net!news.motzarella.org!motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: none Lines: 53 Reply-To: Peter J Ross <pjr.spam@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: feeder.motzarella.org U2FsdGVkX18eu9LtatIEekErYJ+mtzf+GlFKiifyxdjogaIcnlR5ujP+yPpXBpM91hinwzEBFknYmqiu0ttLKExQwvN55dV3LO9x7l9T10XyvtRvOei9WYY/czEBVSXjch/nP54TvwM= X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Tue, 5 Feb 2008 06:10:04 +0000 (UTC) X-Auth-Sender: U2FsdGVkX1/gt7PYhafqOaA3RgYw/wUf Cancel-Lock: sha1:k3kTulPzzzKlRYT9d4pNmVsOTjk= User-Agent: slrn/pre0.9.9-82 (Linux)