jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 2487] New: - Bracketed quantifiers {n,m} don't accept 0 as a lower bound.
Date Fri, 06 Jul 2001 22:57:14 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2487

*** shadow/2487	Fri Jul  6 15:57:14 2001
--- shadow/2487.tmp.21033	Fri Jul  6 15:57:14 2001
***************
*** 0 ****
--- 1,25 ----
+ +============================================================================+
+ | Bracketed quantifiers {n,m} don't accept 0 as a lower bound.               |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2487                        Product: Regexp                  |
+ |       Status: NEW                         Version: unspecified             |
+ |   Resolution:                            Platform: Other                   |
+ |     Severity: Minor                    OS/Version: Other                   |
+ |     Priority: Other                     Component: Other                   |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: regexp-dev@jakarta.apache.org                                |
+ |  Reported By: nino@xtime.com                                               |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ An expression like: \w\d{0,4} should match "a" and "a1".  The current 
+ implemenation (release 1.2), treats a lower bound of 0 as 1.
+ 
+ Test case:
+ 
+ RE expr = new RE("\w\d{0,4}");
+ if (expr.match("a")) {
+   //should be true!
+ }

Mime
View raw message