From: Ahmad Azizan Date: 2009-11-16T07:47:33+09:00 Subject: Re: replace a very long string with gsub get regexp error Robert Klemme wrote: > On 15.11.2009 21:44, Ahmad Azizan wrote: >> 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 Sorry for incomplete question. The problem is that, because of the very long string length, the gsub return a regexp error indicating that the regular expression is too long. Thank you -- Posted via http://www.ruby-forum.com/.