From: "F. Senault" Date: 2010-08-30T00:45:06+09:00 Subject: Re: delete char Le 29 ao�t 2010 � 14:56, Pen Ttt a �crit : > pt@pt-laptop:~$ irb > irb(main):001:0> 'gkhj*&()'[0] > => 103 > irb(main):002:0> > > can i get 'gkhj*&()'[0]=>g?? Not on every ruby version out there. You'd be better using this : >> 'gkhj*&()'[0, 1] => "g" >> 'gkhj*&()'[0..0] => "g" (First is start index, count, the other is start index..end index ; both work on rubies 1.8 and 1.9 at least.) Fred -- Hey God, there's nothing left for me to hide I lost my ignorance, security and pride I'm all alone in this fucking world you must despise (Nine Inch Nails, Hey God, I believed your promises, your promises and lies Terrible Lie)