Bug 2487 - Bracketed quantifiers {n,m} don't accept 0 as a lower bound.
Summary: Bracketed quantifiers {n,m} don't accept 0 as a lower bound.
Status: CLOSED DUPLICATE of bug 1030
Alias: None
Product: Regexp
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other other
: P3 minor (vote)
Target Milestone: ---
Assignee: Jakarta Notifications Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-07-06 15:57 UTC by Nino Walker
Modified: 2004-11-16 19:05 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nino Walker 2001-07-06 15:57:13 UTC
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!
}
Comment 1 Michael McCallum 2001-09-08 15:57:08 UTC

*** This bug has been marked as a duplicate of 1030 ***
Comment 2 Vadim Gritsenko 2003-05-02 01:29:10 UTC
closed