DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25985>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25985 In MATCH_MULTILINE-mode $ does not match end of line ------- Additional Comments From [EMAIL PROTECTED] 2004-01-31 00:15 ------- Ok, changing initial value of lLastPosition to -2 fixed exception in case of: r = new RE("^a$"); s = r.subst("a", "b", RE.REPLACE_BACKREFERENCES); But in case when input has new lines result after subst also contains new lines. So this: r = new RE("^a$", RE.MATCH_MULTILINE); s = r.subst("\r\na\r\n", "b", RE.REPLACE_BACKREFERENCES); Results in s == "\r\nb\r\n". Is this expected? Vadim --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]