String.replaceAll

Syntax

PP.String.replaceAll(str: String, whatReplace: String, thanReplace: String);

Parameters

str. String where a substring will be replaced.

whatReplace. Substring to replace.

thanReplace. value with which the initial substring is replaced.

Description

The replaceAll static method replaces all specified occurrences in the string with specified substring.

Comments

This method returns a String value: that is, the string where a substring is replaced.

Example

The example of use is given in the with description of the String.format method.

See also:

PP