Returns the input with all matches replaced by replacement, interpreted as for appendReplacement. @param replacement the replacement string @return the input string with the matches replaced @throws IndexOutOfBoundsException if replacement refers to an invalid group
(String replacement)
| 577 | * @throws IndexOutOfBoundsException if replacement refers to an invalid group |
| 578 | */ |
| 579 | public String replaceAll(String replacement) { |
| 580 | return replace(replacement, true); |
| 581 | } |
| 582 | |
| 583 | /** |
| 584 | * Returns the input with the first match replaced by {@code replacement}, interpreted as for |