You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by bu...@apache.org on 2004/01/08 13:55:14 UTC
DO NOT REPLY [Bug 25985] New: -
In MATCH_MULTILINE-mode $ does not match end of line
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
Summary: In MATCH_MULTILINE-mode $ does not match end of line
Product: Regexp
Version: unspecified
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Other
AssignedTo: regexp-dev@jakarta.apache.org
ReportedBy: nhb_web@nexgo.de
In mode MATCH_MULTILINE the end-of-line char $ does not work.
Test case:
RE re = new RE("^a$", RE.MATCH_MULTILINE);
System.out.println(re.match("\r\na\r\n"));
System.out.println(re.subst("\r\na\r\n", "b", RE.REPLACE_BACKREFERENCES));
Excepted results:
true / b
Actual results:
false / a
---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org