From: noreply@... Date: 2007-03-12T19:42:57+09:00 Subject: [ ruby-Bugs-9200 ] Problem with long regular expressions Bugs item #9200, was opened at 12/03/2007 10:42 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9200&group_id=426 Category: None Group: 1.8.5 Status: Open Resolution: None Priority: 3 Submitted By: Alessandro Morandi (simbul) Assigned to: Nobody (None) Summary: Problem with long regular expressions Initial Comment: I noticed a bug when working with very long regexps (around 32000 chars). A simple regexp like /hello|AAAAAAAA/ does not match "hello" anymore when the number of "A"s is greater than 32258. Usually, when a regexp is too long to be managed, Ruby issues a "regular expression too big" exception, but in this case it just stops working correctly, without any warning. A test case is attached. The bug has been verified on both Windows and Mac OSX. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=9200&group_id=426