Summary: | Expressions using {0,n} match 0 to n+1 times instead of 0 to n times | ||
---|---|---|---|
Product: | Regexp | Reporter: | Chris Scheuble <chriss> |
Component: | Other | Assignee: | Jakarta Notifications Mailing List <notifications> |
Status: | CLOSED DUPLICATE | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | All |
Description
Chris Scheuble
2001-09-28 15:50:36 UTC
patches applied and tested closed I belive this is not correct solution; testcase #174 output must be '', and Perl agrees with me: #!/usr/bin/perl print "Matching '123abcdefg123' with regexp '([a-z]{0,3})':\n"; if ("123abcdefg123" =~ /([a-z]{0,3})/) { print "Matches. Result: '$1'\n"; } Output: Matching '123abcdefg123' with regexp '([a-z]{0,3})': Matches. Result: '' Patch will follow... *** This bug has been marked as a duplicate of 19329 *** Fixed by Bug #19329 |