From http://www.w3schools.com (Copyright Refsnes Data)

WMLScript replace() Function


WMLScript String Library Complete WMLScript String Library

The replace() function replaces a part of a string with a new string, and returns the result.

Syntax

n = String.replace(string, oldvalue, newvalue)

Part Description
n The string returned from the function
string The original string
oldvalue The value that is going to be replaced
newvalue The value that will replace oldvalue

Example

var a = String.replace("world","wor","bo");
var b = String.replace("world", "ld","ry");

Result

a = "bold"
b = "worry"


WMLScript String Library Complete WMLScript String Library

From http://www.w3schools.com (Copyright Refsnes Data)