๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #216437

Re: [Leafnode] Filter for cigs?

#216437
From: Peter J Ross
Date: Tue, 05 Feb 2008 02:33
32 lines
2297 bytes
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

("!" is a non-word character.)

-- 
PJR :-)
Technical Details
Message-ID: <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!news.karotte.org!news2.arglkargh.de!news.mixmin.net!news.motzarella.org!motzarella.org!not-for-mail
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>

Show Full Headers
Complete Article Headers
Message-ID: <slrnfqfio0.8jl.pjr@pjr.gotdns.org>
Subject: Re: [Leafnode] Filter for cigs?
Date: Tue, 05 Feb 2008 02:33:36 +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>
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.karotte.org!news2.arglkargh.de!news.mixmin.net!news.motzarella.org!motzarella.org!not-for-mail
Newsgroups: news.software.readers
Organization: none
Lines: 32
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
 U2FsdGVkX19EMq6HrpsP51bzELImk/kk5L36tj8iFtTGip7wJodI8bh5BFQ12hno/K7swo6P3aokpfJnmxhfYAqvk2IzOJBnZW2T/5F5S5v4EKyXShNqC6Oy5dOpokjO+fA8aBVnPfQ=
X-Complaints-To: Please send complaints to abuse@motzarella.org with full
 headers
NNTP-Posting-Date: Tue, 5 Feb 2008 02:40:04 +0000 (UTC)
X-Auth-Sender: U2FsdGVkX1811KQdarHwGDqudQx5ZkzH
Cancel-Lock: sha1:m6h/sX0giLnoEriFeeTGnaPFYZw=
User-Agent: slrn/pre0.9.9-82 (Linux)