public class Test { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub String testStr = "hello\\this\\is\\fun"; String newStr = testStr.replaceAll("\\\\", "/"); System.out.println(newStr); } }
Jump To Top of Thread