🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #31310

Re: [slrn] Regexp syntax in rc file?

#31310
From: Ian T Zimmerman
Date: Fri, 14 Feb 1997 00:00
51 lines
2513 bytes
In article <slrn5g81gd.gfg.davis@aluche.mit.edu>,
John E. Davis <davis@space.mit.edu> writes:
> 
> On 13 Feb 1997 16:31:27 GMT, Ian T Zimmerman <itz@nojunk.rahul.net>
> wrote:
> >Hmmm...I take it this means the \( \) syntax is simply not there
> >yet...but then, what is the following doing in slregexp.c?
> >
> >/* ... */
> >
> >#define OPAREN 7		       /* \( */
> >#define CPAREN 0x8		       /* \) */
> 
> S-Lang regular expressions support constructs such as:
> 
> \([a-z]\)\1
> 
> where \1 refers to the text matched by the regular expression enclosed
> in \(...\).  The \| type constructions are not supported.  I wrote the
> S-Lang regular expression package based on an Ultrix man page where there
> was no mention of the \| construct.
> 

In that case, I still don't understand why my setting of

ignore_quotes "^[ ]*\(>[ ]*\)+"

doesn't work.  (Yes, I know it's redundant).  It seems to conform to
the syntax you give.  In particular, it doesn't use any | connectives
(the symbol doesn't even occur in it).

My gut feeling is that the regexp code has a bug.  And the
possibility, probability even, of such bugs is why I'd prefer if my
system's native regex library were used.

Please don't be put off by my comments --- I think slrn is a great
program and I'd like it to be perfect.

And BTW, I'm one of those people who hate courtesy copies like the
plague.  You've managed to invent a new wording of the `posted and
emailed' notice which escaped my filter; but your next emailed copy
will go to /dev/null and waste bandwidth if I did things right.  Just
so that you know :-)

-- 
Ian T Zimmerman                        <itz@rahul.net>
I fully support the President's proposal to test driver's license
applicants for drugs.  Any plan to reduce driving is worth a try.

Technical Details
Message-ID: <slrn5g8f9n.4nr.itz@kronstadt.rahul.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn5g1q7t.gc4.itz@kronstadt.rahul.net> <slrn5g41sd.rr4.davis@mygir.davis.net> <slrn5g6geu.23h.itz@kronstadt.rahul.net> <slrn5g81gd.gfg.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5g8f9n.4nr.itz@kronstadt.rahul.net>
Subject: Re: [slrn] Regexp syntax in rc file?
Date: Fri, 14 Feb 1997 00:00:00 +0000
From: itz@nojunk.rahul.net (Ian T Zimmerman)
References: <slrn5g1q7t.gc4.itz@kronstadt.rahul.net> <slrn5g41sd.rr4.davis@mygir.davis.net> <slrn5g6geu.23h.itz@kronstadt.rahul.net> <slrn5g81gd.gfg.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 218724551
Organization: a2i network
Newsgroups: news.software.readers