From: Ahmad Azizan Date: 2009-11-16T05:44:54+09:00 Subject: replace a very long string with gsub get regexp error 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? -- Posted via http://www.ruby-forum.com/.