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

http://issues.apache.org/bugzilla/show_bug.cgi?id=28926

Infinite loop within RE.matchNodes()

           Summary: Infinite loop within RE.matchNodes()
           Product: Regexp
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Other
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The code

String pattern = "([0-9]{6})([0-9]{4})?(D|C|RD|RC)([A-Z])?([0-9\\,]{0,15})([A-Z]
[A-Z0-9]{3})(.{0,16})//(.{0,16})(\\n?(.{0,34}))?";
String text = "0405100510D99,99NABCKUNDENREF1\nKUNDENREF2";
RE re = new RE(pattern);
re.split(text);

causes an infinite loop within RE.matchNodes(). Tested with RegExp 1.2 and 1.3. 
Kind regards,

Andreas Berg.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to