🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #144980

Re: Dialog - RegExp query.

#144980
From: Julia Thorne
Date: Mon, 15 Mar 2004 21:53
35 lines
2587 bytes
On Mon, 15 Mar 2004 11:35:11 +0100, Anders Eriksson wrote:

>> So you might try this:  {(?!)(dial|40tude)}
>>   or simply:  -{dial|40tude}
>> 

> The question that OP and I asked was about filtering using regexp, not
> scoring. When you do scoring you can use the - but as you can see from your
> own sample the - is NOT part or the regexp! It's a special meta character
> for scoring.

The "-" is not PART of the regexp, but it does negate the regexp. AFAIK,
it's outside the regexp, not part of a standard regexp implementation.
In this case, it's not used for scoring, it's used for Actions.  IMO,
they should be on separate menus.  The 2nd example above works, but it's
not a complete action statement. You also need an Action, something
to use the regexp on, and someplace (a group) to use it on.

This example works:

[news.software.readers]
!delete Subject -{^.*(40.*tude|d..l.g)}

It deletes any message that doesn't mention 40tude or dialog in the
Subject line.  Deletion is a little harsh in some cases- you may
want to use "!markread" instead.

> So I repeat my question: Which Regex Engine does Dialog use?

A good question, and I think many of us would like to know! 
I would also like to see complete documentation on the regexp 
implementation in Dialog, since "regular expressions" are more
"irregular" than some people would like to believe. :-)

Technical Details
Message-ID: <dBp5c.10689869$Id.1789741@news.easynews.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mail
References: <vrnn4097edu658eu8ssso3hik4gv6d6t2b@4ax.com> <19ac5hcbm32z3.dlg@morateknikutveckling.se> <9faagc0m7jyp$.dlg@x.Jeff.Relf> <wiuftx0lt8sa$.dlg@morateknikutveckling.se>

Show Full Headers
Complete Article Headers
Message-ID: <dBp5c.10689869$Id.1789741@news.easynews.com>
Subject: Re: Dialog - RegExp query.
Date: Mon, 15 Mar 2004 21:53:13 GMT
From: Julia Thorne <sydney@nospam.tld>
References: <vrnn4097edu658eu8ssso3hik4gv6d6t2b@4ax.com> <19ac5hcbm32z3.dlg@morateknikutveckling.se> <9faagc0m7jyp$.dlg@x.Jeff.Relf> <wiuftx0lt8sa$.dlg@morateknikutveckling.se>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!crtntx1-snh1.gtei.net!news.gtei.net!newsfeed1.easynews.com!easynews.com!easynews!easynews-local!news.easynews.com.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.10.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Lines: 34
X-Complaints-To: abuse@easynews.com
Organization: EasyNews, UseNet made Easy!
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.