replaceAll( str, regex, replacement )
str
(String)regex
(String)str
replacement
(String)str
, but with all matches of
regex
replaced by replacement
replaceAll("1-2--3---4","--*","x") = "1x2x3x4"
String replaceAll(String, String, String)