🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
3 messages
3 total messages Started by Peter Kerekes Sat, 13 Mar 2004 12:50
[Dialog] Regexp Help file
#144874
Author: Peter Kerekes
Date: Sat, 13 Mar 2004 12:50
17 lines
1567 bytes
Is there somewhere a Help file or Reference file for the RegExp expressions
applicable to Dialog, especially an introductory stage?

I was searching Dialog's help, the WEB site, also some links but was not
able to find a short, simple summary and reference for it. 

I am thinking of: how to specify both capital and regular characters, what
is the | (vertical bar) * (asterisk) ^(caret) meaning, what are the
different brackets, etc 

Hopefully someone can suggest a location. I think I am not the only one
having problems to write short, simple expressions. Would be helpful to
have a ling to this, if exist.

-- 
Peter Kerekes (Toronto, Canada)
Re: [Dialog] Regexp Help file
#144879
Author: foxidrive
Date: Sat, 13 Mar 2004 14:35
43 lines
3017 bytes
On Sat, 13 Mar 2004 07:50:17 -0500, Peter Kerekes wrote:

> Is there somewhere a Help file or Reference file for the RegExp expressions
> applicable to Dialog, especially an introductory stage?
> 
> I was searching Dialog's help, the WEB site, also some links but was not
> able to find a short, simple summary and reference for it. 
> 
> I am thinking of: how to specify both capital and regular characters

Have a look at the regular expression help in Dialog.

>, what is the | (vertical bar)

A logical OR


> * (asterisk) ^(caret) meaning, what are the different brackets, etc 

> Hopefully someone can suggest a location. I think I am not the only one
> having problems to write short, simple expressions. Would be helpful to
> have a ling to this, if exist.

Perhaps someone has some useful links for you.  I just wanted to say that
regexp behavior can change from program to program and it can be difficult
to get a handle on - but keep at it.  That's coming from someone who only
knows the basics as well.


This list is pretty well uniform with any regexp implementation so it may
be a good place to start.

.       any single character
[abc]   any single character in the list
[^abc]  any single character not in the list
*       any number of the preceeding item (including zero)
^       start of line
$       end of line
\       escape any of the above metacharacters
\<      beginning of word
\>      end of word
\\      a literal \
Re: [Dialog] Regexp Help file
#144880
Author: »Q«
Date: Sat, 13 Mar 2004 14:48
14 lines
1509 bytes
Peter Kerekes <pkerekes@ca.inter.net> wrote in
<news:vb94laavl959$.3kbmqiqn0rpr.dlg@40tude.net>:

> Is there somewhere a Help file or Reference file for the RegExp
> expressions applicable to Dialog, especially an introductory
> stage?

Dialog uses Perl Compatible Regular Expressions (PCRE), and googling
for "PCRE syntax" should turn up guides for you.  Here's one:
<http://virtual.park.uga.edu/humcomp/perl/regex2a.html>

-- 
�Q�
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