🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36145

Re: bug in slang regex code (used in slrn)

#36145
From: John E. Davis
Date: Thu, 18 Sep 1997 00:00
27 lines
1538 bytes
On 17 Sep 1997 13:59:02 GMT, Tom Grydeland <tom@mitra.phys.uit.no>
wrote:
>The regex library of slang (used in e.g. slrn) applies quantifiers
>incorrectly to parenthesised expressions.
>
>The regex    ab\(cc\)*
>should match ab, abcc, abcccc, etc.

slrn does not support these expressions.  Here is my response from the
last time a similar question cam up:

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?

Such a library is not available on all systems.  There also seems to
be no uniformity among the various regular expression packages that
are available.  The slrn/jed/slang regular expressions must be uniform
across Unix, MSDOS, OS/2, and VMS.  For that reason, as well as
licensing issues, I wrote my own set of routines.  Someday I will add
support for egrep style expressions but I have better things to do at
the moment.

--John

Technical Details
Message-ID: <slrn6217u4.lh7.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
References: <slrn61voh6.5c9.tom@mitra.phys.uit.no>

Show Full Headers
Complete Article Headers
Message-ID: <slrn6217u4.lh7.davis@mygir.davis.net>
Subject: Re: bug in slang regex code (used in slrn)
Date: Thu, 18 Sep 1997 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <slrn61voh6.5c9.tom@mitra.phys.uit.no>
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: 273607469
Organization: Center for Space Research
Newsgroups: news.software.readers