🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #31255

Re: [slrn] Regexp syntax in rc file?

#31255
From: Ian T Zimmerman
Date: Thu, 13 Feb 1997 00:00
35 lines
1703 bytes
In article <slrn5g41sd.rr4.davis@mygir.davis.net>,
John E. Davis <davis@space.mit.edu> writes:
>  On 11 Feb 1997 21:47:41 GMT, Ian T Zimmerman
> <itz@kronstadt.rahul.net> wrote:
> >JED: WHY not use a native regexp library if one is available?
>  Someday I will add support for egrep style expressions but I have
> better things to do at the moment.

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		       /* \) */

/* ... */


case OPAREN:
        This_Reg->beg_matches[Next_Pos] = (int) (str - This_Str);
        This_Reg->beg_matches[Next_Pos + 1] = -1;
        break;
case CPAREN: 
        This_Reg->end_matches[Next_Pos] = (unsigned int) (str - This_Str) - This_Reg->beg_matches[Next_Pos];
        Next_Pos++;
        break;

-- 
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: <slrn5g6geu.23h.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>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5g6geu.23h.itz@kronstadt.rahul.net>
Subject: Re: [slrn] Regexp syntax in rc file?
Date: Thu, 13 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>
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: 218532835
Organization: a2i network
Newsgroups: news.software.readers