Article View: news.software.readers
Article #166664Re: [Dialog] Simple filter question, but I'm dumb
From: Disciple
Date: Thu, 12 May 2005 15:20
Date: Thu, 12 May 2005 15:20
41 lines
2983 bytes
2983 bytes
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
--
Disciple
"... For the things which are seen are temporary, but the things which are
not seen are eternal." 2 Cor. 4:18
Technical Details
Message-ID:
<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!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!newscon02.news.prodigy.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!pln-e!spln!lex!extra.newsguy.com!newsp.newsguy.com!enews3References:
<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>Show Full Headers
Complete Article Headers
Message-ID: <d5vs8b02c2k@enews3.newsguy.com> Subject: Re: [Dialog] Simple filter question, but I'm dumb Date: Thu, 12 May 2005 11:20:43 -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> 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!border2.nntp.dca.giganews.com!nntp.giganews.com!atl-c02.usenetserver.com!newscon02.news.prodigy.com!newscon06.news.prodigy.com!prodigy.net!newsfeed-00.mathworks.com!pln-e!spln!lex!extra.newsguy.com!newsp.newsguy.com!enews3 Newsgroups: news.software.readers Organization: http://extra.newsguy.com Lines: 41 Reply-To: disciple@invalid.invalid NNTP-Posting-Host: p-807.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 (443735fc.460.466) Archive: No X-No-Archive: Yes