Hi All, I am getting following error log while using RE.java through code, I am overriding handleText() method of ParcerCallback, chars is a string I am getting error while dquoChar.subst(chars,"\""); where dquoChar = new RE("\\&(l|r)dquo;?"); java.lang.StringIndexOutOfBoundsException: String index out of range: 15 at java.lang.String.charAt(String.java:444) at org.apache.regexp.StringCharacterIterator.charAt(StringCharacterIterator.java:90) at org.apache.regexp.RE.matchNodes(RE.java:1161) at org.apache.regexp.RE.matchAt(RE.java:1448) at org.apache.regexp.RE.match(RE.java:1540) at org.apache.regexp.RE.match(RE.java:1468) at org.apache.regexp.RE.subst(RE.java:1676) at org.apache.regexp.RE.subst(RE.java:1646) at com.syntegra.sbs.bg.content.util.HTMLStripper.handleText(HTMLStripper.java:171)
Created attachment 20606 [details] Attempt to reproduce the issue I tried to reproduce this, but couldn't. Presumably it is caused by the input text. The original reporter may have to submit said text to show what the issue is.
Please use release 1.5. If the problem persists, please provide more information in this bug report.