>>541
手元のRubyのリファレンスによると、
gsub(pattern, replace)とある。
同じく手元のJava1.4リファレンスによると、
replaceAll(String regex, String replacement)
とある。