🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
18 messages
18 total messages Started by Lew Mon, 12 Sep 2005 15:13
Boolean search in Dialog?
#173227
Author: Lew
Date: Mon, 12 Sep 2005 15:13
6 lines
1451 bytes
Is there a way to search (filter) for multiple words in Dialog?  For
example, I might want to search for all newsgroups that have the words
"microsoft" and "exchange" in them, or a specific group for Subject
containing "email" and "Internet".  Thanks.

Lew
Re: Boolean search in Dialog?
#173229
Author: foxidrive
Date: Mon, 12 Sep 2005 15:23
10 lines
1383 bytes
On Mon, 12 Sep 2005 11:13:30 -0400, Lew wrote:

> Is there a way to search (filter) for multiple words in Dialog?  For
> example, I might want to search for all newsgroups that have the words
> "microsoft" and "exchange" in them, or a specific group for Subject
> containing "email" and "Internet".  Thanks.
> 
> Lew

Use regular expressions.
Re: Boolean search in Dialog?
#173261
Author: Lew
Date: Tue, 13 Sep 2005 00:34
15 lines
1903 bytes
On Tue, 13 Sep 2005 01:23:24 +1000, foxidrive wrote:

> On Mon, 12 Sep 2005 11:13:30 -0400, Lew wrote:
> 
>> Is there a way to search (filter) for multiple words in Dialog?  For
>> example, I might want to search for all newsgroups that have the words
>> "microsoft" and "exchange" in them, or a specific group for Subject
>> containing "email" and "Internet".  Thanks.
>> 
>> Lew
> 
> Use regular expressions.

How would you do a regular expression search that was equivalent to the
boolean search "microsoft AND exchange"?
Re: Boolean search in Dialog?
#173263
Author: /betty/
Date: Tue, 13 Sep 2005 01:36
19 lines
1906 bytes
On Mon, 12 Sep 2005 20:34:54 -0400, Lew used 15 lines to assert:

> On Tue, 13 Sep 2005 01:23:24 +1000, foxidrive wrote:
> 
>> Use regular expressions.
> 
> How would you do a regular expression search that was equivalent to the
> boolean search "microsoft AND exchange"?

Dialog's inbuilt Help covers this topic fairly well, providing lots of
syntax and constructs descriptions, plus useful examples.

F1 is at your mercy.

There are also several excellent Online sites that offer reqex tutors
and/or string testers, any search engine will quickly lead you to them.

-- 
/betty/ [2005-09-13 11:27:16 am aest]
Re: Boolean search in Dialog?
#173266
Author: wyzwyz
Date: Tue, 13 Sep 2005 01:51
22 lines
1865 bytes
On Mon, 12 Sep 2005 20:34:54 -0400, Lew wrote:

> On Tue, 13 Sep 2005 01:23:24 +1000, foxidrive wrote:
> 
>> On Mon, 12 Sep 2005 11:13:30 -0400, Lew wrote:
>> 
>>> Is there a way to search (filter) for multiple words in Dialog?  For
>>> example, I might want to search for all newsgroups that have the words
>>> "microsoft" and "exchange" in them, or a specific group for Subject
>>> containing "email" and "Internet".  Thanks.
>>> 
>>> Lew
>> 
>> Use regular expressions.
> 
> How would you do a regular expression search that was equivalent to the
> boolean search "microsoft AND exchange"?

try this
microsoft.*exchange|exchange.*microsoft

i dunno if there's an easier way
Re: Boolean search in Dialog?
#173299
Author: Lew
Date: Tue, 13 Sep 2005 20:43
32 lines
2632 bytes
On Tue, 13 Sep 2005 01:36:25 GMT, /betty/ wrote:

> On Mon, 12 Sep 2005 20:34:54 -0400, Lew used 15 lines to assert:
> 
>> On Tue, 13 Sep 2005 01:23:24 +1000, foxidrive wrote:
>> 
>>> Use regular expressions.
>> 
>> How would you do a regular expression search that was equivalent to the
>> Boolean search "microsoft AND exchange"?
> 
> Dialog's inbuilt Help covers this topic fairly well, providing lots of
> syntax and constructs descriptions, plus useful examples.
> 
> F1 is at your mercy.
> 
> There are also several excellent Online sites that offer reqex tutors
> and/or string testers, any search engine will quickly lead you to them.

Thanks for the response.  I had already checked under Help and there were
lots of examples, including "|" for the Boolean "OR", just none for the
Boolean "AND".  Same for the Internet.

In a later post, wyzwyz posted the Regular Expression
"microsoft.*exchange|exchange.*microsoft" as equivalent to "microsoft AND
exchange" and it works.  This is what I was asking for.

I like Dialog and will probably continue using it (until Agent gets Thread
Lines).  I just don't want to have to learn a programming language to do
simple searches.

Lew
Re: Boolean search in Dialog?
#173301
Author: Lew
Date: Tue, 13 Sep 2005 20:46
29 lines
2327 bytes
On Tue, 13 Sep 2005 11:51:25 +1000, wyzwyz wrote:

> On Mon, 12 Sep 2005 20:34:54 -0400, Lew wrote:
> 
>> On Tue, 13 Sep 2005 01:23:24 +1000, foxidrive wrote:
>> 
>>> On Mon, 12 Sep 2005 11:13:30 -0400, Lew wrote:
>>> 
>>>> Is there a way to search (filter) for multiple words in Dialog?  For
>>>> example, I might want to search for all newsgroups that have the words
>>>> "microsoft" and "exchange" in them, or a specific group for Subject
>>>> containing "email" and "Internet".  Thanks.
>>>> 
>>>> Lew
>>> 
>>> Use regular expressions.
>> 
>> How would you do a regular expression search that was equivalent to the
>> boolean search "microsoft AND exchange"?
> 
> try this
> microsoft.*exchange|exchange.*microsoft
> 
> i dunno if there's an easier way

That works.  Thanks.  You didn't figure that out by reading the Dialog help
files did you?

Lew
Re: Boolean search in Dialog?
#173302
Author: Marsjanin
Date: Tue, 13 Sep 2005 22:00
25 lines
2502 bytes
  Rok 2005 - wrzesień. Dokładnie to wtorek, 13-go. Nieco po 22-ej.
  Nagle zza rogu Lew wrzuca na news.software.readers:

> In a later post, wyzwyz posted the Regular Expression
> "microsoft.*exchange|exchange.*microsoft" as equivalent to
> "microsoft AND exchange" and it works.  This is what I was asking
> for.

Yeah. I tried the same few months ago in Hamster. Huh, "AND" is a
serious lack in the RegExp, isn't it?

If not, just try this:
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?

-- 
  Pozdrawiam,  Marsjanin.  Gadu-Gadu :  4548104
  Nowy toner to czarny proszek. Używany - to czarne literki wtopione w papier.
  Gra:  Mel & Kim : "Respectable"
  Brzmi:  Lame 3.90 (alpha),  44  kHz,  192  kbps,  Stereo.
Re: Boolean search in Dialog?
#173313
Author: /betty/
Date: Wed, 14 Sep 2005 00:39
55 lines
3591 bytes
On Tue, 13 Sep 2005 16:43:44 -0400, Lew used 32 lines to assert:

> On Tue, 13 Sep 2005 01:36:25 GMT, /betty/ wrote:
> 
>> There are also several excellent Online sites that offer reqex tutors
>> and/or string testers, any search engine will quickly lead you to them.
> 
> Thanks for the response.  I had already checked under Help and there were
> lots of examples, including "|" for the Boolean "OR", just none for the
> Boolean "AND".  Same for the Internet.
> 

Yes I understand what you mean. Although it makes sense to me because
AND is really only OR in obverse, if you grasp what I mean.

Regex is, by design, a compact construct query tool; whereas Boolean is
more a 'plain English' (human friendly) structured style query, if I may
use the term "'literal' language".

And it's always cute to add 5 zillion methods and options to achieve a
same goal but in truth, it only produces bloat and overkill, not really
the objective of Regex I'd hazard to guess. 

> In a later post, wyzwyz posted the Regular Expression
> "microsoft.*exchange|exchange.*microsoft" as equivalent to "microsoft AND
> exchange" and it works.  This is what I was asking for.
> 

Glad to hear you've got it sorted now.

> I like Dialog and will probably continue using it (until Agent gets Thread
> Lines). 

Why would you abandon a product that *actually* delivered what you
required, *when* you required it, just to go back to some foot-dragger
luddsware that never does?

> I just don't want to have to learn a programming language to do
> simple searches.
> 

You don't. That's only provided and required for complex searches.
And it is provided in all search boxes if required, so you aren't
constrained by archaic limitations.
Is the Hamster/PCRE compliant Regex in Dialog intimidating or less
useful to you, compared to Forte's proprietary Regex in their client?

Anyway, happy temporary Dialoging. I hope you're not forced to waste too
much of your life before your chosen tool that you pine for sees fit to
grant your humble need for a basic 20th century usability that at least
one other newsreader on Win platform had back in 1995, and most had
followed since.

-- 
/betty/ [2005-09-14 10:05:36 am aest]
Re: Boolean search in Dialog?
#173318
Author: Korbinian Abenthum
Date: Wed, 14 Sep 2005 01:27
21 lines
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."
Re: Boolean search in Dialog?
#173319
Author: Lew
Date: Wed, 14 Sep 2005 01:34
15 lines
1990 bytes
On Wed, 14 Sep 2005 00:39:48 GMT, /betty/ wrote:

<snip>

> Anyway, happy temporary Dialoging. I hope you're not forced to waste too
> much of your life before your chosen tool that you pine for sees fit to
> grant your humble need for a basic 20th century usability that at least
> one other newsreader on Win platform had back in 1995, and most had
> followed since.

The comment about Agent and Thread Lines was more of a dig at Agent than a
desire to switch newsreaders.  IE, "until Agent gets Thread Lines" =
"never".

Lew
Re: Boolean search in Dialog?
#173326
Author: /betty/
Date: Wed, 14 Sep 2005 02:34
19 lines
2241 bytes
On Tue, 13 Sep 2005 21:34:33 -0400, Lew used 15 lines to assert:

> On Wed, 14 Sep 2005 00:39:48 GMT, /betty/ wrote:
> 
>> grant your humble need for a basic 20th century usability that at least
>> one other newsreader on Win platform had back in 1995, and most had
>> followed since.
> 
> The comment about Agent and Thread Lines was more of a dig at Agent than a
> desire to switch newsreaders.  IE, "until Agent gets Thread Lines" =
> "never".
> 

Hehe, yeah I know what you mean. In fact it's most of the reason why I
decided to pack up and pitch my tents elsewhere a long time ago, and
everything since has only helped reinforce that decision as a wise one.

-- 
/betty/ [2005-09-14 12:26:52 pm aest]
Re: Boolean search in Dialog?
#173368
Author: wyzwyz
Date: Wed, 14 Sep 2005 16:37
23 lines
1875 bytes
On Tue, 13 Sep 2005 16:46:15 -0400, Lew wrote:


>>> How would you do a regular expression search that was equivalent to the
>>> boolean search "microsoft AND exchange"?
>> 
>> try this
>> microsoft.*exchange|exchange.*microsoft
>> 
>> i dunno if there's an easier way
> 
> That works.  Thanks.  You didn't figure that out by reading the Dialog help
> files did you?
> 
> Lew

not really

also, if u're lazy u could try
{((ms|exchange|word3).*){3,3}}

but this would also pick up subjects like
"word3 blah blah word3 blah blah word3"
Re: Boolean search in Dialog?
#173391
Author: Scott
Date: Wed, 14 Sep 2005 19:44
22 lines
2074 bytes
On Wed, 14 Sep 2005 02:34:42 GMT, /betty/ wrote:

>> The comment about Agent and Thread Lines was more of a dig at Agent than a
>> desire to switch newsreaders.  IE, "until Agent gets Thread Lines" =
>> "never".
>> 
> 
> Hehe, yeah I know what you mean. In fact it's most of the reason why I
> decided to pack up and pitch my tents elsewhere a long time ago, and
> everything since has only helped reinforce that decision as a wise one.

Betty,

Why IS it that Agent refuses to incorporate thread lines? Is it
because of a psychological "mindset" opposing it for some inane
reason, or some technical hurdle too hard for Forte to tackle?

I took a look at A3 last month, and beyond being able to better org
the groups, it's the same old crappy GUI.

-- 
Scott
Re: Boolean search in Dialog?
#173407
Author: Marsjanin
Date: Wed, 14 Sep 2005 22:50
14 lines
2215 bytes
  Rok 2005 - wrzesień. Dokładnie to środa, 14-go. Nieco po 3-ej.
  Nagle zza rogu Korbinian Abenthum wrzuca na news.software.readers:

> 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 work in Dialog? Anyway, thanks.

-- 
  Pozdrawiam,  Marsjanin.  Yahoo! :  marsjanin_tk
  Nowy toner to czarny proszek. Używany - to czarne literki wtopione w papier.
  Nic nie gra. Cudowna cisza...  :-]
Re: Boolean search in Dialog?
#173503
Author: Marsjanin
Date: Thu, 15 Sep 2005 18:22
16 lines
2488 bytes
  Rok 2005 - wrzesień. Dokładnie to środa, 14-go. Nieco po 3-ej.
  Nagle zza rogu Korbinian Abenthum wrzuca na news.software.readers:

> 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 work in Dialog? Anyway, thanks.
Well, what for is the ".*" at the end of this string? It works the
same way with and without it (I think so).

-- 
  Pozdrawiam,  Marsjanin.  Yahoo! :  marsjanin_tk
  Nowy toner to czarny proszek. Używany - to czarne literki wtopione w papier.
  Nic nie gra. Cudowna cisza...  :-]
Re: Boolean search in Dialog?
#173586
Author: Jernej
Date: Fri, 16 Sep 2005 15:13
12 lines
1842 bytes
on Thu, 15 Sep 2005 20:22:57 +-0200, Marsjanin wrote:

> Well, what for is the ".*" at the end of this string? It works the
> same way with and without it (I think so).

.* means "0 or more characters" - it's the same as * when searching for
filenames.

-- 
begin  .sig
< Jernej Simon+AQ0-i+AQ0- ><>+Jco-<>< jernej simoncic at isg si >
end
Re: Boolean search in Dialog?
#173621
Author: Marsjanin
Date: Sat, 17 Sep 2005 13:04
20 lines
2545 bytes
  Rok 2005 - wrzesień. Dokładnie to piątek, 16-go. Nieco po 17-ej.
  Nagle zza rogu Jernej Simončič wrzuca na news.software.readers:

>> Well, what for is the ".*" at the end of this string? It works the
>> same way with and without it (I think so).
> .* means "0 or more characters" - it's the same as * when searching
> for filenames.

Oh, yes, I already knew it.  :-)  But it seems in Hamster, there is no
difference in result when searching
(?=.*a)(?=.*b)(?=.*c).*
or
(?=.*a)(?=.*b)(?=.*c)
..

-- 
  Pozdrawiam,  Marsjanin.  Tlen.pl :  marsjanin-tk
  A może to nie Ranish, tylko zasilacz?  :-(  <http://skocz.pl/ranish>
  Gra:  Thompson Twins : "Doctor! Doctor!"
  Brzmi:  Lame 3.90 (alpha),  44  kHz,  192  kbps,  Stereo.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads