------art_7845_24678385.1135118033631
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

a.split( // ).each { |c| puts c }

j.

On 12/20/05, Lyndon Samson <lyndon.samson / gmail.com> wrote:
>
> a="123"
>
> 0.upto(a.length) { |i| puts a[i..i] }
>
>
> On 12/20/05, shinya <piccionevolante / libero.it> wrote:
> > Hi there!
> > I'm a ruby newbie, and I'm searching for a way to iterate every char in
> > a string, but I cannot find any easy way. My problem is to look at every
> > char in a string and match it with some known letter.
> > I use the String#each_byte iterator for now, but it still be a poor
> > solution :/
> > Thanks,
> >
> > shinya.
> >
> >
>
>
> --
> Into RFID? www.rfidnewsupdate.com Simple, fast, news.
>
>


--
"Remember. Understand. Believe. Yield! -> http://ruby-lang.org"

Jeff Wood

------art_7845_24678385.1135118033631--