From: Kornelius Kalnbach Date: 2010-02-08T21:37:18+09:00 Subject: [ruby-core:28107] Re: [Bug #2644] memory over-allocation with regexp On 08.02.10 13:26, Kornelius Kalnbach wrote: > This seems to be a workaround (all Ruby versions): > p ' '.*(200_000_000)[/(?:.)*/].size #=> 200000000 Sorry, this one doesn't work in JRuby and Ruby 1.9. [murphy]