Development tools : Global functions : String category : replace
  
replace
Description
Replaces all occurrences of a substring in a string with a new value.
Usage
Client side: Y
Server side: Y
Syntax
String replace(String string, String oldString, String newString)
Arguments
string
The string to be manipulated. The argument can be any string, if it is null, null will be returned.
oldString
The substring to be replaced. The argument can be any string.
newString
The substring to replace oldString.
Return
Returns the string in which oldString is replaced by newString.
Example
replace("Hello Hello", "llo", "LLO")
returns "HeLLO HeLLO".
Go up to
String category