DO NOT REPLY [Bug 21660] New: - '$' anchor matching '\n' character.
[email protected] 16 Jul 2003 16:08:33 -0000
| Newsgroups | gmane.comp.jakarta.oro.devel |
|---|---|
| Message-ID | <[email protected]> |
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=21660>.
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=21660
'$' anchor matching '\n' character.
Summary: '$' anchor matching '\n' character.
Product: ORO
Version: 2.0.7
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: Other
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
I don't believe '$' should be matching the '\n' character at the end of the
string. Shouldn't the anchor be matching the logical end of the string?
I used the following code in a JUnit test and the test passed:
String testString = "blahblah\n";
String testRegex = "/^(blah){2}$/";
Perl5Util perl = new Perl5Util();
assertTrue(perl.match(testRegex, testString));