Bug 14689 - Wrong treatment of extremely simple regular expression
Summary: Wrong treatment of extremely simple regular expression
Status: CLOSED DUPLICATE of bug 1030
Alias: None
Product: Regexp
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All other
: P3 major (vote)
Target Milestone: ---
Assignee: Jakarta Notifications Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-19 17:36 UTC by Robert Rodewald
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 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