🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #219395

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

#219395
From: Bernd Rose
Date: Wed, 16 Apr 2008 18:59
43 lines
3470 bytes
Am Tue, 15 Apr 2008 19:20:56 -0400 schrieb Oliver Cromm:

>> The correct RegEx version is:
>> [{^.+\.test$}]
> 
> For a long time I wonder why so many people always try to match the
> whole string in a RegEx, while they seem to be comfortable with partial
> matches in a string match.
> 
> [{.\.test$}] should do exactly the same as above. And [{\.test$}] should
> suffice as well, as no group will start with a dot.

Two reasons: a special one applying here and a more general one: The 
reason why I used the long version here is that the post is just an 
example for a concept. I believe VanguardLH has a good understanding
of RegEx. But many people who come across this thread will have 
problems that are though comparable, yet not identical. Therefore I
usually try to display as much concepts as possible with such terms
as above. I even thought about mentioning the shorter versions, but
decided against that to keep the post lean.

When I try to get people that are unfamiliar with regular expressions
to really understand their principle workings, I nearly always noticed
that they easier understand a whole line parsing RegEx, rather than
partial matching. Adjusting the above to only match 'test' groups in 
the 'alt' hierarchy will be an easy task even for most newbies, while
it will be very hard for many to extend the partial matching form...

The second reason for complete matching pertains to situations, where
assumptions about the possible matches may be faulty. If VanguardLH 
had a folder by the name .test inside Dialog, he might be *very* 
displeased with the results of the new filter when only partial
matching is used.  ;-)

Again, I don't think this would have been a problem with VanguardLH,
but it could be one with somebody applying the principle to a
seemingly similar situations.

I hope this clarifies *my* thoughts while writing the above RegEx 
string. The reasons for other people posting "full line matching"
strings may vary...

Bernd
Technical Details
Message-ID: <12bnf4szztojc$.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!newsfeed01.sul.t-online.de!t-online.de!newsfeed.velia.net!noris.net!newsfeed.arcor.de!newsspool3.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> <murgwdl3rkoj.dlg@b.rose.tmpbox.news.arcor.de> <15lfcb2twijql.dlg@mid.crommatograph.info>

Show Full Headers
Complete Article Headers
Message-ID: <12bnf4szztojc$.dlg@b.rose.tmpbox.news.arcor.de>
Subject: Re: 40tude Dialog (regex query): How to test for no vowels in Subject?
Date: Wed, 16 Apr 2008 20:59:18 +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> <murgwdl3rkoj.dlg@b.rose.tmpbox.news.arcor.de> <15lfcb2twijql.dlg@mid.crommatograph.info>
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!newsfeed01.sul.t-online.de!t-online.de!newsfeed.velia.net!noris.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.41 (6d1a3736.157.447)
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 43
Organization: Arcor
NNTP-Posting-Date: 16 Apr 2008 20:58:08 CEST
NNTP-Posting-Host: 8ac9b90a.newsspool3.arcor-online.net
X-Trace: DXC=2fhH3HBJ]@?i6K; >iZ]763McF=Q^Z^V384Fo<]lROoR1^; 5]aA^R6>2>Lf>;
 8]Ydb019JlNQl`::9SX]ZmQEY7W9QHDIc3Gka=0
X-Complaints-To: usenet-abuse@arcor.de