From: Joachim Glauche Date: 2008-02-16T01:33:45+09:00 Subject: Re: special type of string replacement laredotornado wrote: > Hi, > > I want to insert the "​" character in between each character of > a string contained in @user.email. So if the string output were > "me@mine.com", the result would be > "m​e​@​m​i​n​e​.​c​o​m". > > Thanks for the info, - Dave Something like this will do: email = "me@mine.com" email[0..-1].gsub(/./){|c| c+"​"}+email[-1..-1] -- Posted via http://www.ruby-forum.com/.