🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
18 messages
18 total messages Started by Scott Wed, 08 Oct 2003 15:55
[Dialog] Regex for "AND"
#135115
Author: Scott
Date: Wed, 08 Oct 2003 15:55
8 lines
1183 bytes
I want to search for two or more keywords in the Subject using a regular
expression. I read the help section about regex, but nothing seems obvious
to me about how to set an AND condition, such as "Dialog AND Newsreader".

-- 
Scott
Re: [Dialog] Regex for "AND"
#135111
Author: Antonio 'Gandalf' Favata
Date: Wed, 08 Oct 2003 16:07
20 lines
2008 bytes
news.software.readers ~ 8/10/2003 17.55 ~ Scott:

> I want to search for two or more keywords in the Subject using a regular
> expression. I read the help section about regex, but nothing seems obvious
> to me about how to set an AND condition, such as "Dialog AND Newsreader".

PCRE (Perl compatible Regualar Expression) has nothing like logical AND.

Try this: {Dialog.*newsreader|newsreader.*Dialog}

Or, better, use scoring:
+5 Subject "Dialog"
+1 Subject "newsreader"
!any_action Score %> 5
-- 
Fare Well! | gandalf@ithn.net ~ ICQ# 16553733 ~ now: 08/10/2003 18.03.35
G          | Advice:              WinEject 2.0 <http://www.wineject.com>

Aldo Biscardi � uno che fa errori di grammatica anche quando pensa.
Re: [Dialog] Regex for "AND"
#135114
Author: Scott
Date: Wed, 08 Oct 2003 16:49
17 lines
1581 bytes
On 8 Oct 2003 16:07:24 GMT, Antonio 'Gandalf' Favata wrote:

> news.software.readers ~ 8/10/2003 17.55 ~ Scott:
> 
>> I want to search for two or more keywords in the Subject using a regular
>> expression. I read the help section about regex, but nothing seems obvious
>> to me about how to set an AND condition, such as "Dialog AND Newsreader".
> 
> PCRE (Perl compatible Regualar Expression) has nothing like logical AND.
> 
> Try this: {Dialog.*newsreader|newsreader.*Dialog}

It works if I don't include the curlycue brackets. Thanks Antonio.

-- 
Scott
Re: [Dialog] Regex for "AND"
#135116
Author: Antonio 'Gandalf' Favata
Date: Wed, 08 Oct 2003 17:03
13 lines
1858 bytes
news.software.readers ~ 8/10/2003 18.49 ~ Scott:

>> Try this: {Dialog.*newsreader|newsreader.*Dialog}
> It works if I don't include the curlycue brackets.

I never actually used any regex in Dialog, I was just assuming the syntax
was the same as Hamster, where {} are needed. Sorry :)
-- 
Fare Well! | gandalf@ithn.net ~ ICQ# 16553733 ~ now: 08/10/2003 19.01.23
G          | Advice:     40tude Dialog 2.0.5.1 <http://snurl.com/dialog>

BREAKFAST.COM halted... Cereal port not responding
Re: [Dialog] Regex for "AND"
#135120
Author: Enrico C
Date: Wed, 08 Oct 2003 17:56
27 lines
2242 bytes
A certain Antonio 'Gandalf' Favata, of news.software.readers, writes:

> news.software.readers ~ 8/10/2003 18.49 ~ Scott:

>>> Try this: {Dialog.*newsreader|newsreader.*Dialog}
>> It works if I don't include the curlycue brackets.

> I never actually used any regex in Dialog, I was just assuming the syntax
> was the same as Hamster, where {} are needed. Sorry :)


When you use a Reg-Ex in the "FIlter" window on top of the Headers
list pane,  the {brace brackets} are implicit, you don't need to write
them.

The same applies to the {very useful indeed!} Regular Expression
tester, i.e. the third tab on the Scoring&Action window. 

On the other hand, I noticed that you need the {brace brackets} if you
want to use Reg-Ex in a Scoring&Action rule :-}

-- 
Enrico C

| http://www.lillathedog.net/dialog/tutorial1-ita.html  
| Tutorial in italiano per il newsreader 40tude Dialog
Re: [Dialog] Regex for "AND"
#135130
Author: Antonio 'Gandalf' Favata
Date: Wed, 08 Oct 2003 22:32
12 lines
1861 bytes
news.software.readers ~ 8/10/2003 19.56 ~ Enrico C:

> On the other hand, I noticed that you need the {brace brackets} if you
> want to use Reg-Ex in a Scoring&Action rule :-}

Yes, it's what I were thinking about :)
-- 
Fare Well! | gandalf@ithn.net ~ ICQ# 16553733 ~ now: 09/10/2003 0.31.49
G          | Advice:   Hamster 2.0.2.2 <http://snurl.com/hamsterclassic>

im not as think as you drunk i am
Re: [Dialog] Regex for "AND"
#135140
Author: Enrico C
Date: Thu, 09 Oct 2003 09:53
13 lines
1587 bytes
A certain daRkSidE, of news.software.readers, writes:

> +1000 Subject "Dialog" +"Newsreader"

Cool! 
So, there *is* an AND logic operator in Dialog's Scoring&Actions :)
 
-- 
Enrico C

| http://www.lillathedog.net/dialog/tutorial1-ita.html  
| Tutorial in italiano per il newsreader 40tude Dialog
Re: [Dialog] Regex for "AND"
#135147
Author: Scott
Date: Thu, 09 Oct 2003 13:29
20 lines
1653 bytes
 Thu, 09 Oct 2003 08:06:42 GMT, daRkSidE wrote:

> On Wed, 8 Oct 2003 10:55:52 -0500, *Scott* wrote:
> 
>> I want to search for two or more keywords in the Subject using a regular
>> expression. I read the help section about regex, but nothing seems obvious
>> to me about how to set an AND condition, such as "Dialog AND Newsreader".
> 
> You don't need reg-ex. Simply:
> 
> +1000 Subject "Dialog" +"Newsreader"

That's great for common or repetitive multiple keyword searches, but I was
looking for something quick for "on-the-fly" searches. Too bad regex can't
do a simple Boolean "AND" operation.

Thanks,

Scott
Re: [Dialog] Regex for "AND"
#135152
Author: »Q«
Date: Thu, 09 Oct 2003 14:01
18 lines
1904 bytes
Scott <scott@invalid.net> wrote in
<news:hzlvwdrs7qqw$.1xyarbuf71epe$.dlg@40tude.net>:

> Too bad regex can't do a simple Boolean "AND" operation.

Regex doesn't do anything, regex just is.  ;)

Is it not possible to perform a search for "Dialog" and then perform a
second search for "Newsreader", with the second search only looking for
matches within the results of the first search?  If not, that would be
a nice feature.

-- 
�Q�
      "KEEP BIG BROTHER'S HANDS OFF THE INTERNET"
              By Senator John Ashcroft
<http://usinfo.state.gov/journals/itgic/1097/ijge/gj-7.htm>
Re: [Dialog] Regex for "AND"
#135155
Author: Scott
Date: Thu, 09 Oct 2003 15:49
16 lines
1732 bytes
On Thu, 09 Oct 2003 14:01:59 GMT, �Q� wrote:

> Is it not possible to perform a search for "Dialog" and then perform a
> second search for "Newsreader", with the second search only looking for
> matches within the results of the first search?  

No. A new keyword searches the entire newsgroup, not the results. I think
Xnews searched on the results, and I miss that.

> If not, that would be a nice feature.

Indeed it would. Perhaps Marcus can set that as an option.

-- 
Scott
Re: [Dialog] Regex for "AND"
#135158
Author: Antonio 'Gandalf' Favata
Date: Thu, 09 Oct 2003 16:23
16 lines
1960 bytes
news.software.readers ~ 9/10/2003 17.49 ~ Scott:

> No. A new keyword searches the entire newsgroup, not the results. I think
> Xnews searched on the results, and I miss that.
>> If not, that would be a nice feature.
> Indeed it would. Perhaps Marcus can set that as an option.

Go and mantis it in :)

[yes, I just created the verb �to mantis�]
-- 
Fare Well! | gandalf@ithn.net ~ ICQ# 16553733 ~ now: 09/10/2003 18.14.14
G          | Advice:     40tude Dialog 2.0.5.1 <http://snurl.com/dialog>

Advertising is legalized lying. (H. G. Wells)
Re: [Dialog] Regex for "AND"
#135159
Author: Scott
Date: Thu, 09 Oct 2003 16:53
12 lines
1484 bytes
On 9 Oct 2003 16:23:26 GMT, Antonio 'Gandalf' Favata wrote:

 
> Go and mantis it in :)
> 
> [yes, I just created the verb �to mantis�]

I'll have to "google" it first :)

-- 
Scott
Re: [Dialog] Regex for "AND"
#135163
Author: Tarkus
Date: Thu, 09 Oct 2003 18:03
23 lines
2393 bytes
On Thu, 9 Oct 2003 10:49:37 -0500, Scott wrote:

> On Thu, 09 Oct 2003 14:01:59 GMT, �Q� wrote:
> 
>> Is it not possible to perform a search for "Dialog" and then perform a
>> second search for "Newsreader", with the second search only looking for
>> matches within the results of the first search?  
> 
> No. A new keyword searches the entire newsgroup, not the results. I think
> Xnews searched on the results, and I miss that.
> 
>> If not, that would be a nice feature.
> 
> Indeed it would. Perhaps Marcus can set that as an option.

Mantis is your friend.  :)
-- 
The UNofficial 40tude Dialog mailing list:
Email:  40tude_Dialog-subscribe@yahoogroups.com
Web:  http://groups.yahoo.com/group/40tude_Dialog/

Now playing: "Demons & Wizards - Path Of Glory"
Re: [Dialog] Regex for "AND"
#135164
Author: Tarkus
Date: Thu, 09 Oct 2003 18:06
19 lines
2181 bytes
On Thu, 9 Oct 2003 11:53:01 -0500, Scott wrote:

> On 9 Oct 2003 16:23:26 GMT, Antonio 'Gandalf' Favata wrote:
> 
>  
>> Go and mantis it in :)
>> 
>> [yes, I just created the verb �to mantis�]
> 
> I'll have to "google" it first :)

Help > ... (Mantis)
-- 
The UNofficial 40tude Dialog mailing list:
Email:  40tude_Dialog-subscribe@yahoogroups.com
Web:  http://groups.yahoo.com/group/40tude_Dialog/

Now playing: "Demons & Wizards - Path Of Glory"
Re: [Dialog] Regex for "AND"
#135166
Author: Scott
Date: Thu, 09 Oct 2003 19:10
19 lines
1620 bytes
On Thu, 09 Oct 2003 18:06:36 GMT, Tarkus wrote:

>>  
>>> Go and mantis it in :)
>>> 
>>> [yes, I just created the verb �to mantis�]
>> 
>> I'll have to "google" it first :)
> 
> Help > ... (Mantis)

I know, I know. Just having fun with Verbs <g>.

-- 
Scott
VERB = Vacant Eyed Rich Bitch
(from Richard Marcinko's "Detachment Bravo")

Re: [Dialog] Logic "AND" operator in Scoring&Actions (was: [Dialog] Regex for "AND")
#135169
Author: Enrico C
Date: Thu, 09 Oct 2003 19:38
29 lines
2295 bytes
A certain daRkSidE, of news.software.readers, writes:

> On 9 Oct 2003 09:53:47 GMT, *Enrico C* wrote:

>> Cool! 
>> So, there *is* an AND logic operator in Dialog's Scoring&Actions :)

> Indeed,  I  haven't found it in Dialog's Guide (but there is an example
> with  -,  to  indicate  AND NOT (or something better, but it isn't just
> NOT,  because  it's linked to the previous string)), but I'm quite sure
> it is in Hamster's Guide; and anyway, it works, definitely.

Yes, I tested it in Scoring&Actions and it works as a logic "AND"
operator :)

Nobody knew about it, I guess! 
See old answers to a similar question in thread
<news:184me1lab9h1w$.dlg@RonsDomainUsedInHisMsgIDs.uk> 
Only a workaround was figured out, but we didn't know about the "+"
operator. 
I propose that there be an example of the AND operator in the S&A
examples!

-- 
Enrico C

Do Something Amazing Today
Save a Life, Give Blood
Re: [Dialog] Regex for "AND"
#135214
Author: John Fitzsimons
Date: Sat, 11 Oct 2003 09:56
20 lines
1776 bytes
On Thu, 09 Oct 2003 14:01:59 GMT, �Q� wrote:

> Scott <scott@invalid.net> wrote in
> <news:hzlvwdrs7qqw$.1xyarbuf71epe$.dlg@40tude.net>:

>> Too bad regex can't do a simple Boolean "AND" operation.

> Regex doesn't do anything, regex just is.  ;)

> Is it not possible to perform a search for "Dialog" and then perform a
> second search for "Newsreader", with the second search only looking for
> matches within the results of the first search?  If not, that would be
> a nice feature.

That is EXACTLY how Agent does things. Unfortunately Dialog doesn't do
things that way. Would be great if it did. Hopefully Marcus will catch up
to Agent in this regard someday.

Regards, John.
Re: [Dialog] Regex for "AND"
#135215
Author: John Fitzsimons
Date: Sat, 11 Oct 2003 09:56
22 lines
1575 bytes
On Wed, 8 Oct 2003 11:49:14 -0500, Scott wrote:

> On 8 Oct 2003 16:07:24 GMT, Antonio 'Gandalf' Favata wrote:

< snip >

>> Try this: {Dialog.*newsreader|newsreader.*Dialog}

> It works if I don't include the curlycue brackets. Thanks Antonio.

Interesting. 

So what is OR when you use a Reg-Ex in the "Filter" window on top of the
headers Eg. Dialog OR MesNews ? 

Is there a limit to how many characters across one can go ? If so then what
is it please ?

Also, how about NOT Eg. Agent NOT "Free Agent" ?

Regards, John.
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