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 25985] - In MATCH_MULTILINE-mode $ does not match end of line
Date Sat, 31 Jan 2004 00:15:23 GMT
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 vgritsenko@apache.org  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: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org


Mime
View raw message