Bug 14689

Summary: Wrong treatment of extremely simple regular expression
Product: Regexp Reporter: Robert Rodewald <robert.rodewald>
Component: OtherAssignee: Jakarta Notifications Mailing List <notifications>
Status: CLOSED DUPLICATE    
Severity: major    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: other   

Description Robert Rodewald 2002-11-19 17:36:57 UTC
The extremely simple regular expression "^\w{0,5}$" will compile but instead of 
matching "", "aaa" and not "aaaaaa" it doesn't match "" and matches "aaaaaa" 
instead. This is a problem that only occurs when the lower boundary is zero. In 
this case both boundaries are increased by 1. This is totally different from 
what any regular expression package I know does.

Robert
Comment 1 Vadim Gritsenko 2003-04-25 12:28:36 UTC

*** This bug has been marked as a duplicate of 1030 ***
Comment 2 Vadim Gritsenko 2003-05-02 01:16:14 UTC
Fixed by Bug #19329