Documentation du Dr FRAPPE

Ce wiki regroupe les résultats de mes expériences en informatique accumulés au cours de mes recherches sur le net.

Dans la mesure du possible, j'ai cité mes sources ; il en manque certainement… :-)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révisionLes deux révisions suivantes
portail:programmation:pyregex:start [2021/02/17 14:09] – ↷ Page déplacée de fr:portail:programmation:pyregex:start à portail:programmation:pyregex:start adminportail:programmation:pyregex:start [2021/02/28 10:42] admin
Ligne 5: Ligne 5:
 La barre oblique inversée **\** précède un caractère spécial à utiliser tel quel, sans son utilisation particulière. La barre oblique inversée **\** précède un caractère spécial à utiliser tel quel, sans son utilisation particulière.
  
-====== Syntaxe des expressions régulières ======+===== Syntaxe des expressions régulières =====
  
 Une expression régulière (ou RE) spécifie un ensemble de chaînes qui lui correspond. Une expression régulière (ou RE) spécifie un ensemble de chaînes qui lui correspond.
Ligne 151: Ligne 151:
 '\u' and '\U' escape sequences are only recognized in Unicode patterns.  In bytes patterns they are errors.  Unknown escapes of ASCII letters are reserved for future use and treated as errors. Octal escapes are included in a limited form.  If the first digit is a 0, or if there are three octal digits, it is considered an octal escape. Otherwise, it is a group reference.  As for string literals, octal escapes are always at most three digits in length. '\u' and '\U' escape sequences are only recognized in Unicode patterns.  In bytes patterns they are errors.  Unknown escapes of ASCII letters are reserved for future use and treated as errors. Octal escapes are included in a limited form.  If the first digit is a 0, or if there are three octal digits, it is considered an octal escape. Otherwise, it is a group reference.  As for string literals, octal escapes are always at most three digits in length.
  
-====== Voir aussi ======+===== Voir aussi =====
  
   * **(en)** [[https://docs.python.org/3/library/re.html]]   * **(en)** [[https://docs.python.org/3/library/re.html]]