ReplaceString

Kategorie: Script / Strings
Ab Engineversion: 8.0 OC

Beschreibung

Returns a string in which all occurrences of a substring (from) got replaced by a different string (to).

Syntax

string ReplaceString(string text, string from, string to);

Parameter

text:
Source string in which the replacements occur.
from:
Old substring to be replaced.
to:
New substring by which the old substrings will be replaced.

Beispiel

Log(ReplaceString("An apple a day keeps the apple away.", "apple", "banana"));
Displays "An banana a day keeps the banana away."
Siehe auch: RegexReplace
Sven2, 2016-07