Bug 23338 - a copy of bug 9153?
Summary: a copy of bug 9153?
Status: CLOSED DUPLICATE of bug 9153
Alias: None
Product: Regexp
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: All All
: P3 critical (vote)
Target Milestone: ---
Assignee: Jakarta Notifications Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-09-22 22:49 UTC by Peter
Modified: 2005-01-11 13:36 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter 2003-09-22 22:49:38 UTC
Tried playing with version 1.2 and 1.3

In both 1.2& 1.3 this works:
       System.out.println("test= " +
matchRegexp("12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890", "^.{0,250}$"));

in 1.2 this return true.. in 1.3 it stalls :
       System.out.println("test= " +
matchRegexp("12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"123456789012345678901234567890123456789012345678901", "^.{0,250}$"));

in both versions this stalls :
       System.out.println("test= " +
matchRegexp("12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"12345678901234567890123456789012345678901234567890" +
"1234567890123456789012345678901234567890123456789012", "^.{0,250}$"));


Making the regex ^.{0,15}$ returns false in both versions.

Looks like the bigger the second value in the regex is the longer it takes,
250 stalls and I have to test 0,2000 ...
Comment 1 Vadim Gritsenko 2003-09-23 00:29:49 UTC

*** This bug has been marked as a duplicate of 9153 ***