On Thursday 12 February 2004 16:24, Koncept wrote:
>
> irb(main):001:0> result = '{ "robert","trey","adrian", "pat" }'
> => "{ \"robert\",\"trey\",\"adrian\", \"pat\" }"
>
> irb(main):002:0> result.scan(/"(.*?)"/).flatten
> => ["robert", "trey", "adrian", "pat"]
>
> irb(main):004:0> result.class
> => *String*

I think that you are discarding the result of flatten....

(not tested)
array = result.scan(...).flatten
array.class

Cheers,
Martin