Bug 2487

Summary: Bracketed quantifiers {n,m} don't accept 0 as a lower bound.
Product: Regexp Reporter: Nino Walker <nino>
Component: OtherAssignee: Jakarta Notifications Mailing List <notifications>
Status: CLOSED DUPLICATE    
Severity: minor    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: other   

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