From: Akinori MUSHA Date: 2001-05-27T18:39:01+09:00 Subject: [ruby-talk:15795] Re: Check a few characters of a string: How? At Sun, 27 May 2001 17:10:05 +0900, Franz GEIGER wrote: > Want to check the first or last character of a string or say any character > of a string. Do I really have to write s[0..0] to *not* get a number but to > get a *character*? Or even worse: Must I expand String and Array somehow for > that? Isn't s[pos,len] short enough? The first character will be s[0,1] and the last will be s[-1,1]. -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "Freeze this moment a little bit longer, make each impression a little bit stronger.. Experience slips away -- Time stand still"