Re: Confused first time Kate user

Liste des GroupesRevenir à c editors 
Sujet : Re: Confused first time Kate user
De : gazelle (at) *nospam* shell.xmission.com (Kenny McCormack)
Groupes : comp.editors
Date : 03. Jul 2024, 12:46:26
Autres entêtes
Organisation : The official candy of the new Millennium
Message-ID : <v63dmi$30frd$1@news.xmission.com>
References : 1 2 3
User-Agent : trn 4.0-test77 (Sep 1, 2010)
In article <v63bs4$25m5u$1@dont-email.me>,
Richard Owlett  <rowlett@access.net> wrote:
...
This regex expression should do what you want:
[[:digit:]]{3}
 
>
I suspect that would accept a value of "0".
*ERROR* with results I don't wish to contemplate.

I suspect that what you want to do actually can't be done (accurately) with
regexps, if we interpret your requirements literally.  Most responders so
far have pretty much glossed over your requirements.  For example, while
you want to match (and replace) XYZ299, you want to leave XYZ300 alone.

You probably need a programming languages (such as AWK) to do this correctly.

Note, BTW, that the real problem with regexps is that there are so many
different implementations.  Supposedly, there is a standard - actually,
multiple standards - but each implementation is subtly different.  For
example, sometimes you need \ before special characters like ( or { or ?
and sometimes you don't (depending on which implementation you are using).

--
"If our country is going broke, let it be from feeding the poor and caring for
the elderly. And not from pampering the rich and fighting wars for them."

    --Living Blue in a Red State--

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