From: Bigmac Turdsplash Date: 2009-09-07T12:32:37+09:00 Subject: Re: i need to strip \n and nil 7stud -- wrote: > Michael Fellinger wrote: >> >> >> ["59023\n", nil].join.to_i > > You're kidding, right? I had it figured out a few minutes after this post... i didnt know the differnce between a string and array... i convert the array to a string then used compact i thought i was working the string class so i was reading threw the wrong page... any ways... because of this premature post, i spent a few hours try to solve a new problem before i ask for help... strings="a9digh0t5" # every 3 bytes i need broke into separate strings[x] puts(string[1]) #==> a9d puts(string[2]) #==> ihg puts(string[3]) #==> 0t5 how can i brake a long string into blocks equal to 3 bytes? -- Posted via http://www.ruby-forum.com/.