You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by bu...@apache.org on 2003/07/16 18:08:33 UTC
DO NOT REPLY [Bug 21660] New: -
'$' anchor matching '\n' character.
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