Link Search Menu Expand Document

String.Replace Method

Explanation Finds the specified string and replaces everything found with another string.

This method updates the value of the String object.
Call format var s = str.Replace( search, replace )
Return value Character string as a result of replacement
Arguments String search Search string
String replace String to replace
Exception Func-4 Invalid argument
Example of use
var str = new String("abcdefg");
print(str.Replace("cde", "CDE"), "\n");
print(str, "\n");
    
Related item