replaceAll method

This method replaces all the specified text in a document with other text.

Defined in

Document

Syntax

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

Parameters

String what

Specifies the text in the document 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: replaceAll method