From: "Darryl L. Pierce" Date: 2012-06-13T21:27:21+09:00 Subject: Re: string.chars.to_a question On Wed, Jun 13, 2012 at 6:15 AM, Michael Sung wrote: > Hello, > > Is there a way to capture " (quotation marks) when you use the > chars.to_a command? > > For example: > > string = string.chars.to_a > length = string.length >  newString = Array.new > >  while length >= 0 >    newString << [string[length]] >    length = length - 1 > >  end > > > This works fine for letters, but does not seem to put " (quotation > marks) into an array. There's nothing special about letters verses punctuation in the above code. Are you talking about the quotes that surround the string; i.e., string = "this is a string" ? -- Darryl L. Pierce "What do you care what people think, Mr. Feynman?"