Article View: news.software.readers
Article #173318Re: Boolean search in Dialog?
From: Korbinian Abenthum
Date: Wed, 14 Sep 2005 01:27
Date: Wed, 14 Sep 2005 01:27
21 lines
2006 bytes
2006 bytes
Marsjanin wrote:
> a AND b will be simple as above:
> {a.*b|b.*a}
> a AND b AND c - and here we get this long exp:
> {a.*b.*c|a.*c.*b|b.*a.*c|b.*c.*a|c.*a.*b|c.*b.*a}
> and what to do with a&b&c&d or more...? :-O
>
> Or is there a more simply method?
Yes, but it's not working in the DIALOG RegEx module.
You can accomplish that with lookahead, something like:
(?=.*a)(?=.*b)(?=.*c).*
IIRC lookahead is working with the Hamster PCRE module.
--
"Don't he like girls?"
"He's just stupid. He likes to polish helmets and beat on swords
with hammers."
Technical Details
Message-ID:
<140905.032745.nsr.48@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!nntp.giganews.com!news.glorb.com!dotsrc.org!news.dotsrc.org!not-for-mailReferences:
<2fzc7sd9i514$.130gpz6drb9qs.dlg@40tude.net> <1tas9wt91tu50.1ed8mx4k51kez$.dlg@40tude.net> <iwp7vbwduxvd$.1a7hlrys08rob.dlg@40tude.net> <14aph8rjq1zoz$.dlg@betty.invalid> <13wwwidbo4bdn.r57olmdsa5aa$.dlg@40tude.net> <nkog2eurv47k.dlg@marsjanin.tk>Show Full Headers
Complete Article Headers
Message-ID: <140905.032745.nsr.48@news.abenthum.de>
Subject: Re: Boolean search in Dialog?
Date: Wed, 14 Sep 2005 03:27:45 +0200
From: Korbinian Abenthum <korbinian@gmx.de>
References: <2fzc7sd9i514$.130gpz6drb9qs.dlg@40tude.net> <1tas9wt91tu50.1ed8mx4k51kez$.dlg@40tude.net> <iwp7vbwduxvd$.1a7hlrys08rob.dlg@40tude.net> <14aph8rjq1zoz$.dlg@betty.invalid> <13wwwidbo4bdn.r57olmdsa5aa$.dlg@40tude.net> <nkog2eurv47k.dlg@marsjanin.tk>
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!news.glorb.com!dotsrc.org!news.dotsrc.org!not-for-mail
Newsgroups: news.software.readers
User-Agent: 40tude_Dialog/2.0.15.35 Hamster/2.0.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Face: &[gF$*:|'M7pwKut]{LOz!&65BT96:Wn\M"V6Qa#q%~9^z8XhJfmh?.)VB{,
p]Z`6q@e()!g1ghrG7.atG.DXfzulkKE%u~|D7?e6^-yN4GvZJuvz%$LZBA6`dJTo,
MYUO%I*0us[.v/AT,
Lines: 21
Organization: SunSITE.dk - Supporting Open source
NNTP-Posting-Host: 217.250.3.69
X-Trace: news.sunsite.dk DXC=; <8I@hP4`UWGdO>3\oBM:UYSB=nbEKnk[iFJS01?NW=P=8;
LP`]<H5V1iAjoL\i^9_k[QR184; _bX3h7Uh4J\M[T0PHS; n_L7c[NkK^=>dnMB\
X-Complaints-To: staff@sunsite.dk