I would like to know if there is an equivalent to tr/// (as used in Perl) in Java. For example, if I wanted to replace all \"s\"s with \"p\"s in \"mississippi\" and vice ver
Commons' replaceChars may be your best bet. AFAIK there's no replacement (ar ar) in the JDK.