🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #166663

Re: [Dialog] Simple filter question, but I'm dumb

#166663
From: Disciple
Date: Thu, 12 May 2005 15:29
44 lines
3020 bytes
On Thu, 12 May 2005 11:20:43 -0400, Disciple wrote:

> On Wed, 11 May 2005 21:00:28 +0200, Korbinian Abenthum wrote:
> 
>> Disciple wrote:
>>> On Wed, 11 May 2005 14:21:24 GMT, Tucci wrote:
>>>> On Wed, 11 May 2005 16:18:28 +0200, Andreas Loch wrote:
>>>>> 2005-05-11, Tucci:
>>>>>> On Wed, 11 May 2005 14:02:58 GMT, Tucci wrote:
>> 
>>>>>>> Is this how I would delete any thread that has any of these buzzwords:
>>>>>>> 
>>>>>>> !delete Subject "Bush War Iraq Clinton Kerry Viagra Make Money FoxNews CNN"
>> 
>>> See my previous post about an regex to do this. However given the added
>>> info above it should now be:
>>> 
>>> Bush\s|[Ww]ar\s|Iraq\s|Clinton\s|Kerry\s|[Vv]iagra\s|[Mm]ake
>>> [Mm]oney[\s.]|FoxNews\s|CNN\s
>> 
>> Not quite, you have to put it in curly brackets {} to let DIALOG know it's a
>> regular expression.
> 
>  Testing the above regex in Dialog's built in tester it passes. However
> adding {} to encase the expression causes it to fail.
> 
>> And just adding a whitespace after the buzzwords won't work if it's at the
>> end of the subject, I guess,
> 
> I don't understand what you are saying here. Not having a full
> understanding of the syntax of regex expressions the added white space was
> a quick way to prevent a match on Joe Bushman or any other word that
> contains a target word. However I see your syntax works better, I am going
> to have to study it more. The following works with all regex testers I
> have available, I did add the lower case for the words that may appear
> that way.
> 
>| (?-i)\b(Bush|[Ww]ar|Iraq|Clinton|Kerry|[Vv]iagra|[Mm]ake [Mm]oney|FoxNews|CNN)\b

Thank you for the added info, I see I have a lot to learn about regex
expressions. 
-- 
Disciple
Do not be deceived; "Bad company corrupts good morals."   1Cor. 15:33
Technical Details
Message-ID: <d5vsod01thm@enews2.newsguy.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2
References: <meiefrgvr7wj.o29tbzp1s3bd.dlg@40tude.net> <cbxeht62zwfj.12mqhui9xp9sg$.dlg@40tude.net> <1115821108.46@anchedo.newsoffice.de> <2o5weqx6xj9k.3m5ke166ftza$.dlg@40tude.net> <d5tdpl01lpo@enews3.newsguy.com> <110505.210028.nsr.11@news.abenthum.de> <d5vs8b02c2k@enews3.newsguy.com>

Show Full Headers
Complete Article Headers
Message-ID: <d5vsod01thm@enews2.newsguy.com>
Subject: Re: [Dialog] Simple filter question, but I'm dumb
Date: Thu, 12 May 2005 11:29:17 -0400
From: Disciple <disciple@invalid.invalid>
References: <meiefrgvr7wj.o29tbzp1s3bd.dlg@40tude.net> <cbxeht62zwfj.12mqhui9xp9sg$.dlg@40tude.net> <1115821108.46@anchedo.newsoffice.de> <2o5weqx6xj9k.3m5ke166ftza$.dlg@40tude.net> <d5tdpl01lpo@enews3.newsguy.com> <110505.210028.nsr.11@news.abenthum.de> <d5vs8b02c2k@enews3.newsguy.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!pln-w!spln!dex!extra.newsguy.com!newsp.newsguy.com!enews2
Newsgroups: news.software.readers
Organization: http://extra.newsguy.com
Lines: 44
Reply-To: disciple@invalid.invalid
NNTP-Posting-Host: p-209.newsdawg.com
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
User-Agent: 40tude_Dialog/2.0.15.1 (64167f42.340.330)
Archive: No
X-No-Archive: Yes