From: "Brian Schröder" Date: 2005-05-19T16:45:23+09:00 Subject: Re: accessing each character of a string On 19/05/05, Boris Glawe wrote: > Hi, > > my problem is obviously very basic, but how to I acces for example the third > character of the string "hello" ?? > > The [] method does not behave as expected, the each method returns the whole > string, the methods of Enumerable mixin don't help me... > > This can't be that hard to solve!? > > thanks Boris > hello[2,1] => 'l' regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/