3940414243444546
System.out.println(clause.replaceAll("<#(.*)/>", "[#$1/]")); String test = "aaa \nbbaad\n"; Replacer replacer = new Replacer("( +?)\\n", "\n"); System.out.print(test); System.out.print(replacer.process(test)); } }