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 2001/03/19 23:05:51 UTC
[Bug 1030] New - {n,m} notation failure in org.apache.regexp.RE.match
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1030
*** shadow/1030 Mon Mar 19 14:05:51 2001
--- shadow/1030.tmp.7268 Mon Mar 19 14:05:51 2001
***************
*** 0 ****
--- 1,25 ----
+ +============================================================================+
+ | {n,m} notation failure in org.apache.regexp.RE.match |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1030 Product: Regexp |
+ | Status: NEW Version: unspecified |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: |
+ | Priority: Medium Component: Other |
+ +----------------------------------------------------------------------------+
+ | Assigned To: regexp-dev@jakarta.apache.org |
+ | Reported By: duffymo@yahoo.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ I asked jakarta-regexp-1.2 to test the string "111111" against the regexp
+ pattern "^\d{0,5}(\.\d\d)?$". I believe this string should have failed, but
+ the method org.apache.regexp.RE.match() returned "true" when it should have
+ returned "false".
+
+ I tested the same string using the ORO and GNU libraries - both agreed that
+ this string should not match this pattern.
+
+ I ran all examples under Windows 2000 using JDK 1.3.