Replace$

Result = Replace$ ( String , Pattern , ReplaceString )

Replaces every occurrence of the string Pattern in the string String by the string ReplaceString , and returns the result .


Examples

PRINT Replace$("Gambas is basic", "bas", "BAS")

GamBAS is BASic

PRINT Replace$("Gambas is basic", "a", "")

Gmbs is bsic

PRINT Replace$("Gambas is basic", " ", "--")

Gambas--is--basic