replaceAll method

Characters replaceAll (
  1. Characters pattern,
  2. Characters replacement
)

Replaces pattern with replacement.

Returns a new Characters sequence where all occurrences of the pattern characters are replaced by replacement, unless the occurrence overlaps a prior replaced occurrence of pattern.

Returns the current characters if there is no occurrence of pattern.

Implementation

Characters replaceAll(Characters pattern, Characters replacement);