6.5.5 Partie droite et gauche d’une chaîne : droit ou right, gauche ou left
-
droit(s,n) ou right(s,n) renvoie les n derniers caractères
de la chaîne s.
On tape :
droit("bonjour",4)
Ou on tape :
right("bonjour",4)
On obtient :
"jour"
- gauche(s,n) ou left(s,n) renvoie les n premiers caractères
de la chaîne s.
On tape :
gauche("bonjour",3)
Ou on tape :
left("bonjour",3)
On obtient :
"bon"