Phantom Documentation

[Help Home] [Phantom Home]
replace

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


 


Copyright 2000-2011 Phantom Automated Solutions