Deutsch   English   Français   Italiano  
<v67r08$34r1p$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Lawrence D'Oliveiro <ldo@nz.invalid>
Newsgroups: comp.editors
Subject: Re: Various forms of Regexps in tools (standard and non-standard)
 (was Re: CLARIFICATION ...)
Date: Fri, 5 Jul 2024 03:58:00 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <v67r08$34r1p$2@dont-email.me>
References: <v613h1$1m6k5$1@dont-email.me> <v63ar5$25gos$1@dont-email.me>
	<v67gs4$2vq6a$1@dont-email.me> <v67k33$3403d$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Fri, 05 Jul 2024 05:58:01 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f79de672a803ab933f2468b509612aa4";
	logging-data="3304505"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19iCi/1l+914Pf1cAUqYaZA"
User-Agent: Pan/0.158 (Avdiivka; )
Cancel-Lock: sha1:/lnWJOC7lECOD4vq+6D7SK3NcGU=
Bytes: 2490

On Fri, 5 Jul 2024 04:00:01 +0200, Janis Papanagnou wrote:

> On 05.07.2024 03:05, Lawrence D'Oliveiro wrote:
>
>> The Perl style seems to have become something of a de-facto standard.
> 
> Hardly. First, there's differences on the functional level; Perl
> supports with their regexp library functions that are not part of the
> Regular Expression grammar class, they exceed that class. The
> consequence is that for that subset there's no O(N) (linear) complexity
> guaranteed any more.

Precisely. Many users of REs seem to feel it is useful to at least
have the option of such extensions, and they are willing to pay that
price.

> Second, there's syntactical differences between tools, that are
> necessary to handle meta-characters in their specific language
> context; in one tool meta-characters need, e.g., to be escaped where
> in another context that's not necessary. How can something be a
> standard when (standard-)tools do not support that.

Surely they do it the way that Perl does. Hence “Perl style”.

> Moreover, when speaking about [de facto] "standards"; what would
> that mean in the light of existing (real) standards ...

It means there is a standard library (actually a whole bunch of them)
you can link against to immediately support that style of regular
expression.

<https://packages.debian.org/search?keywords=pcre&searchon=names&suite=stable§ion=all>