From: Brian Candler Date: 2012-09-25T01:15:43+09:00 Subject: Re: Insert at index Geena Tho wrote in post #1077284: > Hi, > Is there any alternative for insert in string. I need to insert > different > characters at different indices using a loop, but since insert modifies > the string it goes wrong. > Please help. >> str="foobar" => "foobar" >> str[0...3]+"x"+str[3..-1] => "fooxbar" >> str => "foobar" -- Posted via http://www.ruby-forum.com/.