From: Robert Klemme Date: 2009-11-16T06:50:05+09:00 Subject: Re: replace a very long string with gsub get regexp error On 15.11.2009 21:44, Ahmad Azizan wrote: > Hello, > > I've encountered a problem to replace a very long string with gsub. > The string length is around 80,000. > > As example, > data contains string with length 80,000 > > lala = "Replaced string" > > input = input.gsub(data, lala) > > Is there any other method for that string replacement like in this case > beside using gsub? And your problem is? robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/