Article View: news.software.readers
Article #219156Re: 40tude Dialog (regex query): How to test for no vowels in Subject?
From: VanguardLH
Date: Sat, 12 Apr 2008 11:05
Date: Sat, 12 Apr 2008 11:05
29 lines
2621 bytes
2621 bytes
Bernd Rose wrote:
> On Fri, 11 Apr 2008 02:37:52 -0500, VanguardLH wrote:
>
>> So if the Subject doesn't have one, or more, vowels then the post gets
>> deleted. For Dialog in a scoring rule, I first thought of:
>>
>> !delete Subject [^aAeEiIoOuU]
>
> !delete Subject {(^Re:|^)[^aeiou]*$}
>
> Replace the asterisk by a plus-sign, if you want to keep posts with
> empty subject. As Dialog defaults to case-insensitive matching, you
> shouldn't need to include the upper-case letters in above string.
>
> HTH.
> Bernd
Interesting. The "(^Re:|^)" presumably means to match on a leading
"Re:" at the start of the line or just the start of line itself along
with the next list of characters. The "[^aeiou]*" presumably means to
match on each character in the string and return it if not one of those
listed. And then the "$" anchors it to the end of the line. I wasn't
sure why you added the braces until I reread the help file on scoring
where it said "Regular expressions in the score file need to be written
in braces."
Time to sleep. I'll test this tomorrow in a *.test newsgroup and
replace delete with setcolor so I can see on which posts it trigger.
Technical Details
Message-ID:
<ftq510$7qs$1@registered.motzarella.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.albasani.net!news.motzarella.org!motzarella.org!not-for-mailReferences:
<ftn4ge$8nj$1@registered.motzarella.org> <1hws4gmk66bug$.dlg@b.rose.tmpbox.news.arcor.de>Show Full Headers
Complete Article Headers
Message-ID: <ftq510$7qs$1@registered.motzarella.org> Subject: Re: 40tude Dialog (regex query): How to test for no vowels in Subject? Date: Sat, 12 Apr 2008 06:05:07 -0500 From: VanguardLH <V@nguard.LH> References: <ftn4ge$8nj$1@registered.motzarella.org> <1hws4gmk66bug$.dlg@b.rose.tmpbox.news.arcor.de> 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.albasani.net!news.motzarella.org!motzarella.org!not-for-mail Newsgroups: news.software.readers Organization: A noiseless patient Spider Lines: 29 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: feeder.motzarella.org U2FsdGVkX1+j1qQbbP1r7GZv+AuKts9qy2PjhruhOKahhHaEPQ8k0BUSBGXFDPvc5WZlycBeo3p69XdvXJhaRyyAHX8yWg0BIMVBfZUo9tcWLLCDKygo6wnDAFxMi2b8N8iSXdHkSU3QC4IFOE9LgA== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Sat, 12 Apr 2008 11:05:04 +0000 (UTC) Keywords: VanguardLH X-Auth-Sender: U2FsdGVkX1/OStXFjzsYcZu4Bq+/QE5s/igH+f33OI40RYyMOmb1bw== Cancel-Lock: sha1:HVYF9jPCZKXDqTKBQ3j2yNvdsXc= User-Agent: 40tude_Dialog/2.0.15.1