🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by John Fitzsimons Sun, 04 May 2003 23:55
Dialog "Show Groups" query.
#124462
Author: John Fitzsimons
Date: Sun, 04 May 2003 23:55
15 lines
1246 bytes

I want to search through my full newsgroup list for all outlookexpress
newsgroups BUT exclude those groups that are german. I find that the regex 
outlookexpress -de does NOT work however.

Is my syntax wrong ? If so then what should it be please ?

Or is this a Dialog bug ?

I thought Perl allowed "exclusions". Does it ?


Regards, John.
Re: Dialog "Show Groups" query.
#124463
Author: Norbert Schmidt
Date: Mon, 05 May 2003 01:20
38 lines
2220 bytes
Hello John,

> I want to search through my full newsgroup list for all outlookexpress
> newsgroups BUT exclude those groups that are german. I find that the regex 
> outlookexpress -de does NOT work however.

> Is my syntax wrong ? If so then what should it be please ?

well, the main problem is, what you wrote is not a "regular expression". It
looks like a standard search expression for web search engines. And that's
something completely different.

Regular expressions have some characteristics of a programming language -
they are very powerful and may look confusing. For starters have a look at
dialog fine help (Reference->Regular Expressions). Some examples might help
(Hello Markus: /hint, hint!/;-))

Now to your problem: I guess you wouldn't want Japanese, Hungarian or
Danish newsgroups either. So it would be easier to select the hierarchies
you want. An example could be:

	^(alt|ms|comp).*outlook
	
And now I take the magic out of this cryptic line:
	"^" - at the beginning says: Start seraching at the beginning. 
		Without it the expression could match anywhere within 
		the String.
		
	"(alt|ms|comp)" - search for one of these strings. 
	
	".*"	- Matches any character, as often as necessary
	
	"outlook" - obvious.

HIH.

Regards, Norbert
Re: Dialog "Show Groups" query.
#124514
Author: John Fitzsimons
Date: Mon, 05 May 2003 23:51
48 lines
2729 bytes
On Mon, 5 May 2003 03:20:08 +0200, Norbert Schmidt wrote:

Hello Norbert,

>> I want to search through my full newsgroup list for all outlookexpress
>> newsgroups BUT exclude those groups that are german. I find that the regex 
>> outlookexpress -de does NOT work however.

>> Is my syntax wrong ? If so then what should it be please ?

> well, the main problem is, what you wrote is not a "regular expression". It
> looks like a standard search expression for web search engines. And that's
> something completely different.

> Regular expressions have some characteristics of a programming language -
> they are very powerful and may look confusing. 

Yes, I know they are very powerful. I use them in Dialog, and in Hamster,
and find them of great use. I find however that finding the correct syntax
a difficulty though.

> For starters have a look at
> dialog fine help (Reference->Regular Expressions). Some examples might help
> (Hello Markus: /hint, hint!/;-))

Yes, I had gone there before asking my question. I hadn't been able to work
things out though. I was, in particular, looking for an "exclusion" item.
Either it wasn't there or I overlooked it.

The lack of examples certainly didn't help either.  :-(

> Now to your problem: I guess you wouldn't want Japanese, Hungarian or
> Danish newsgroups either. So it would be easier to select the hierarchies
> you want. An example could be:

Thanks, BUT I would still like to know how I can do "exclusions" eg .de
etc. Perhaps you/someone else could explain how please ?

< snip detailed explanation of script example >

> HIH.

Yes, it does. Thank you for taking the time to give such a detailed reply.
Much appreciated.  :-)


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