Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > fr.comp.lang.regexp > #181

Re: espaces, retours chariot, tab…

From Olivier Miakinen <om+news@miakinen.net>
Newsgroups fr.comp.lang.regexp
Subject Re: espaces, retours chariot, tab…
Date 2022-09-16 00:09 +0200
Organization There's no cabale
Message-ID <tg07qd$2190$1@cabale.usenet-fr.net> (permalink)
References <slrntgkli1.262t.gerald.niel+spam@home.niel.me> <tfave8$3bs$1@cabale.usenet-fr.net> <tfvqt5$pt4$3@shakotay.alphanet.ch>

Show all headers | View raw


Le 15/09/2022 20:28, Jo Engo a écrit :
> Le Wed, 7 Sep 2022 22:37:28 +0200, Olivier Miakinen a écrit :
> 
>> [ \t\r\n]
> 
> J'ai rêvé ou \b caste toutes les espaces que ce soit <tab>< ><RC> etc. ?

Peut-être dans certains dialectes de regexp, et il faudrait voir alors si cela
détecte aussi des caractères blancs exotiques tels que l'espace fine et toute
cette sorte de choses. Exactement comme le \s dans PCRE¹, quoi.

Sinon, dans PCRE, \b est une limite entre un caractère de "mot" (\w) et un
caractère qui n'est pas un caractère de "mot" (\W). Il s'agit d'une assertion,
c'est-à-dire que \b ne consomme aucun caractère.


¹ PCRE = Perl Compatible Regular Expressions.

-- 
Olivier Miakinen

Back to fr.comp.lang.regexp | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

espaces, retours chariot, tab… Gérald Niel <gerald.niel+spam@gegeweb.invalid> - 2022-08-27 17:37 +0000
  Re: espaces, retours chariot, tab… Olivier Miakinen <om+news@miakinen.net> - 2022-09-07 22:37 +0200
    Re: espaces, retours chariot, tab? Marc SCHAEFER <schaefer@alphanet.ch> - 2022-09-08 06:06 +0000
    Re: espaces, retours chariot, tab… Jo Engo <yl@icite.fr> - 2022-09-15 18:28 +0000
      Re: espaces, retours chariot, tab… Olivier Miakinen <om+news@miakinen.net> - 2022-09-16 00:09 +0200

csiph-web