From: Simon Strandgaard Date: 2004-02-12T22:39:57+09:00 Subject: Re: [Bug?] Stack overflow in regexp matcher On Thu, 12 Feb 2004 22:16:55 +0900, David Heinemeier Hansson wrote: > I've been using the wonderful new RedCloth release from why the lucky > stiff for a while, but feeding it large inputs causes a meltdown in > Ruby's regexp'er. I've narrowed the problem down to: > > irb(main):001:0> IO.readlines("large_paragraph.txt").join("\n") =~ > /(.+)\n(?![#*\s|])/ > RegexpError: Stack overflow in regexp matcher: /(.+)\n(?![#*\s|])/ > from (irb):1 > I have never seen Ruby's regexp engine output the regexp-string. However yesterday I tried Oniguruma, and it outputs the regexp-string. Have you compiled Oniguruma ? -- Simon Strandgaard