jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 42777] New: - Error while using RE.java
Date Fri, 29 Jun 2007 09:50:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42777>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42777

           Summary: Error while using RE.java
           Product: Regexp
           Version: unspecified
          Platform: Sun
        OS/Version: Windows XP
            Status: NEW
          Severity: major
          Priority: P2
         Component: Other
        AssignedTo: regexp-dev@jakarta.apache.org
        ReportedBy: bhushanka@techmahindra.com


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)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org


Mime
View raw message