import org.apache.regexp.*; public class Repro { public static void main(String[] args) throws Exception { String chars = "bob“jim"; RE dquoChar = new RE("\\&(l|r)dquo;?"); String txt = dquoChar.subst(chars,"\""); System.out.println("TEXT: " + txt); } }