From: Josh Cheek Date: 2010-05-04T01:15:17+09:00 Subject: Re: how can i get that kind of transpose? --0016e6d64c5beb0a120485b2e597 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Sat, May 1, 2010 at 8:59 PM, Pen Ttt wrote: > there is text1 > 1,2,3,4 > 1,2,3 > 1,2 > 1,2,3,4,5 > what i want to get is text2: > 1=EF=BC=8C1=EF=BC=8C1=EF=BC=8C1 > 2=EF=BC=8C2=EF=BC=8C2=EF=BC=8C2 > 3=EF=BC=8C3=EF=BC=8C 3 > 4=EF=BC=8C 4 > 5 > how to get it ? > -- > Posted via http://www.ruby-forum.com/. > > You need to be more clear: First your names are "text1" and "text2" but your data is not quoted like text would be. It is split with commas like an array would be, but it is no= t bracketed like an array would be, and you named it text. Second, your desired data is unclear, the spacing is off so that it is unclear which row the 4 belongs on, and the 5 seems to be on the wrong side= . If this is what you actually desire, you need to explain the rules that determine this output, if not, then you need to double check your input. --0016e6d64c5beb0a120485b2e597--