Bug 27740

Summary: At execution org.apache.regexp. RE.substr (substIn, substOut, REPLACE_ALL) "bites off" first two symbols of substOut if substOut contains $0-$9
Product: Regexp Reporter: mvtm <mvtm>
Component: OtherAssignee: Jakarta Notifications Mailing List <notifications>
Status: CLOSED DUPLICATE    
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   

Description mvtm 2004-03-17 14:02:46 UTC
At execution org.apache.regexp. RE.substr (substIn, substOut, REPLACE_ALL)
"bites off" first two symbols of substOut if substOut contains $0-$9. Also, if
substOut contains $0-$9 from a position less than 2, subst(.. falls with
StringOutOfBoundsException: String index out of range: -2 (or -1).
Comment 1 Oleg Sukhodolsky 2004-03-18 03:55:18 UTC
It looks like this is a duplicate of 25985 (In MATCH_MULTILINE-mode $ does not 
match end of line).  Could you, please, test with current development version, 
or provide testcase to reproduce the problem.
Comment 2 mvtm 2004-03-18 17:09:44 UTC
I'm downloading jakarta-regexp-20040316.jar. No error detected :)
Comment 3 Vadim Gritsenko 2004-03-18 18:45:38 UTC

*** This bug has been marked as a duplicate of 25985 ***