From: Christian Neukirchen Date: 2006-03-02T01:53:08+09:00 Subject: Re: string contains one of these??? Jeffrey Schwab writes: > hitesh.jasani@gmail.com wrote: >> Actually if you flip it around as 'leagues & words.split' it turns out >> to have some significant performance advantages in many cases. See >> http://www.jasani.org/articles/2006/02/28/adding-the-science-back-to-computer-science >> for more details. > > I am surprised by the scan failures ("could not continue test"). Do > you know what causes the error? irb(main):002:0> Regexp.new "x"*600_000 RegexpError: regular expression too big: /xxxxx... -- Christian Neukirchen http://chneukirchen.org