string replace(string,string,string)
Return Type: string
Parameters: string input, string old, string new
Description:
Searches the input string for the old string and replaces all occurrences
with the new string. The returned string is the result of the replacement.
Example
Code |
1 >>string
s = "Fickle Pickle";
2 >>disp(replace(s, "ckle", "ne"));
Fine Pine |