replace static method

String replace(
  1. String text,
  2. Pattern from,
  3. String replace
)

replace

Implementation

static String replace(String text, Pattern from, String replace) {
  return text.replaceAll(from, replace);
}