You are viewing a plain text version of this content. The canonical link for it is here.
Posted to regexp-dev@jakarta.apache.org by bu...@apache.org on 2003/09/23 00:49:39 UTC

DO NOT REPLY [Bug 23338] New: - a copy of bug 9153?

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23338>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23338

a copy of bug 9153?

           Summary: a copy of bug 9153?
           Product: Regexp
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Other
        AssignedTo: regexp-dev@jakarta.apache.org
        ReportedBy: pvdw@cendec.com


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 ...