|
|
WMLScript replace() Function
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
Complete WMLScript String Library
The Creators of XMLSpy are Pleased to Announce
|
|
|