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] New: - In MATCH_MULTILINE-mode $ does not match end of line
Date Thu, 08 Jan 2004 12:55:14 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

           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


Mime
View raw message