Go to: Synopsis. Return value. MEL examples.

Synopsis

string substituteAllString(string $text, string $searchStr, string $replaceStr)

Substitute every occurrence of a single character string in a text string by a new string of any length.

Return value

None

Arguments

Variable Name Variable Type Description
$textstring- Original string to be modified.
$searchStrstring- Single character string to replace.
$replaceStrstring- String that will be added in.

MEL examples

    string $text = "one + two + three + four";
    string $result = substituteAllString($text, "+", "plus");
    print $result;