Returns a new string in which all occurrences of the specified string in the text are replaced with another specified string. The search is done case-sensitive.
string StrReplace(string text; string oldValue; string newValue; [int startIndex])
text |
The string to do search and replace inside. |
oldValue |
The string to be replaced. |
newValue |
The string to replace oldValue. |
startIndex |
Optional index for where to start doing replacements. |
Example
StrReplace("Winter is coming.";"Winter";"Summer")
Returns "Summer is coming.".