🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #219189

Re: 40tude Dialog (regex query): How to test for no vowels in Subject?

#219189
From: Bernd Rose
Date: Sun, 13 Apr 2008 07:53
44 lines
3003 bytes
Am Sun, 13 Apr 2008 02:18:13 -0500 schrieb VanguardLH:

>> !delete Subject {(^Re:|^)[^aeiou]*$}
[...] 
> Well, that regular expression seems to work.  

Sure.  ;-)

> [*.test]
[...]
> I wanted the filter only to work in *.test groups, not in a group that
> had "test" somewhere else in its name, like perhaps "*.betatest".  

Use:
[.test]

But be aware, that the above string also catches *.testimonial or groups
like that. Use regular expressions, if you need more control (see below).

> Now I have to figure why I need to specify an actual group name in full.
> Do I need to use regular expressions in the group specifier, too, like
> maybe "[*\.test]" (where I escape the period character)?  

The correct RegEx version is:
[{^.+\.test$}]

> how come the asterisk works by itself instead of having to use
> ".*" to mean 0 or more of any character (which would probably be ".+"
> since no group would have zero characters in its name)?  

Think of the asterisk in normal usage cases as a placeholder for specific
situations, not the RegEx "0 or more repetitions". It can be used to
represent all groups and all subgroups in a hierarchy (and all mails
and postings in case of the double-asterisk). To create a RegEx, you
(again) need to include the whole string in curly braces.

> Maybe I just can't get complicated with the group names and am stuck with
> only what the help shows for examples, which means I have to use the
> full group name to include it or "-string" to omit some group that has
> that string anywhere in its name.

As you can see: Target group strings can be fairly advanced.  ;-)

Bernd
Technical Details
Message-ID: <murgwdl3rkoj.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!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail
References: <ftn4ge$8nj$1@registered.motzarella.org> <1hws4gmk66bug$.dlg@b.rose.tmpbox.news.arcor.de> <ftsc3d$tju$1@registered.motzarella.org>

Show Full Headers
Complete Article Headers
Message-ID: <murgwdl3rkoj.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: 40tude Dialog (regex query): How to test for no vowels in Subject?
Date: Sun, 13 Apr 2008 09:53:21 +0200
From: Bernd Rose <b.rose.tmpbox@expires-2008-04-30.arcornews.de>
References: <ftn4ge$8nj$1@registered.motzarella.org> <1hws4gmk66bug$.dlg@b.rose.tmpbox.news.arcor.de> <ftsc3d$tju$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!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (589f52db.224.450)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 44
Organization: Arcor
NNTP-Posting-Date: 13 Apr 2008 09:52:19 CEST
NNTP-Posting-Host: d1959d66.newsspool4.arcor-online.net
X-Trace: DXC=o^^1aU=RS@nEB; 5>eE0T7m4IUK<Cl32<a4Fo<]lROoRa^;
 5]aA^R6>b2L29ae6lA@oBYf[Tl<>Rjj5PBcB>]hPWc:PkjCbld@`o
X-Complaints-To: usenet-abuse@arcor.de