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 2004/05/12 16:16:31 UTC
DO NOT REPLY [Bug 28926] New: -
Infinite loop within RE.matchNodes()
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: regexp-dev@jakarta.apache.org
ReportedBy: andreas.berg@triona.de
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: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org