**METHOD:** `re.Replace(string, replaceWith)`
**Description**
Remplace les correspondances du pattern par un texte.
**Syntax**
`re.Replace(string, replaceWith)`
**Paramètres**
– `string` : Chaîne source.
– `replaceWith` : Remplacement.
**Retour**
Chaîne modifiée.
**Exemples**
« `vb
Dim re
Set re = CreateObject(« VBScript.RegExp »)
re.Pattern = « s+ »
re.Global = True
WScript.Echo re.Replace(« a b », » « )
« `
**Voir aussi**
`Replace`