User Tools

Site Tools


fr:replace

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

fr:replace [2016/01/01 22:45]
fr:replace [2020/02/28 10:46] (current)
Line 1: Line 1:
 +===== Replace =====
 +
 +==== Format ====
 +**replace** ( //haystack// , //fromstring// , //tostring// )\\
 +**replace** ( //haystack// , //fromstring// , //tostring// , //caseinsensitive//)
 +
 +==== Description ====
 +Retourne une nouvelle chaîne de caractères où toutes les occurrences de //fromstring// ont été remplacées par //tostring// dans la chaîne originale //haystack//. En spécifiant un quatrième paramètre //caseinsensitive// à vrai (true) la recherche ne tiens pas compte de la casse.
 +
 +==== Exemple ====
 +<code>
 +a$ = "We all live in a yellow submarine, yellow submarine, yellow submarine."
 +print Replace(a$,"yellow","blue")
 +print Replace(a$, "we", "Beatles", true)</code>
 +Affichera :
 +<code>
 +We all live in a blue submarine, blue submarine, blue submarine.
 +Beatles all live in a yellow submarine, yellow submarine, yellow submarine.
 +</code>
 +
 +==== Disponible depuis la version ==== 
 +0.9.6.55
  
fr/replace.txt · Last modified: 2020/02/28 10:46 (external edit)