replace method

This method replaces all specified text in a range with other text.

Defined in

Range

Syntax

public int replace( String what, String replacement, boolean matchcase )

Parameters

String what

Specifies the text in the range to be replaced.

String replacement

Specifies the text that replaces the text specified by the what parameter.

boolean matchcase

Specifies whether to match case. A value of true matches case, and a value of false does not match case.

See examples

Example: replace method