jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 21660] New: - '$' anchor matching '\n' character.
Date Wed, 16 Jul 2003 16:08:33 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=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: oro-dev@jakarta.apache.org
        ReportedBy: bhandy@users.sf.net


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));

---------------------------------------------------------------------
To unsubscribe, e-mail: oro-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: oro-dev-help@jakarta.apache.org


Mime
View raw message