Re: Various forms of Regexps in tools (standard and non-standard) (was Re: CLARIFICATION ...)

Liste des GroupesRevenir à c editors 
Sujet : Re: Various forms of Regexps in tools (standard and non-standard) (was Re: CLARIFICATION ...)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.editors
Date : 05. Jul 2024, 04:58:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v67r08$34r1p$2@dont-email.me>
References : 1 2 3 4
User-Agent : Pan/0.158 (Avdiivka; )
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&section=all>

Date Sujet#  Auteur
2 Jul 24 * Confused first time Kate user16Richard Owlett
2 Jul 24 +* Re: Confused first time Kate user7candycanearter07
2 Jul 24 i+* Re: Confused first time Kate user3Janis Papanagnou
3 Jul 24 ii+- Re: Confused first time Kate user1Richard Owlett
3 Jul 24 ii`- Re: Confused first time Kate user1candycanearter07
3 Jul 24 i`* Re: Confused first time Kate user3Richard Owlett
3 Jul 24 i `* Re: Confused first time Kate user2Kenny McCormack
3 Jul 24 i  `- Re: Confused first time Kate user1Richard Owlett
2 Jul 24 +* Re: Confused first time Kate user3Janis Papanagnou
3 Jul 24 i+- Re: Confused first time Kate user1Richard Owlett
3 Jul 24 i`- Re: Confused first time Kate user1Richard Owlett
3 Jul 24 `* CLARIFICATION [Re: Confused first time Kate user]5Richard Owlett
5 Jul 24  `* Re: CLARIFICATION [Re: Confused first time Kate user]4Lawrence D'Oliveiro
5 Jul 24   `* Various forms of Regexps in tools (standard and non-standard) (was Re: CLARIFICATION ...)3Janis Papanagnou
5 Jul 24    `* Re: Various forms of Regexps in tools (standard and non-standard) (was Re: CLARIFICATION ...)2Lawrence D'Oliveiro
6 Jul 24     `- Re: Various forms of Regexps in tools (standard and non-standard) (was Re: CLARIFICATION ...)1Janis Papanagnou

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal