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 2002/05/16 11:12:40 UTC

DO NOT REPLY [Bug 9153] New: - RE.match() hangs when using {n,m}

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

RE.match() hangs when using {n,m} 

           Summary: RE.match() hangs when using {n,m}
           Product: Regexp
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: regexp-dev@jakarta.apache.org
        ReportedBy: thomas.letsch@loyaltypartner.com


Hi,

I have found a regular expression and accoording String which hangs the JVM:
RE: "^((\w|\s){1,50})$"
String to match: "Controlling &Cheques"

It will hang when I call
RE re = new RE("^((\w|\s){1,50})$");
re.match("Controlling &Cheques");

Thanks for any help.

Regards,
Thomas

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>