Pat Kiatchaipipat wrote:
> I have one string name
> 
> message = "5x-2=18"
> 
> and I want to create substring or array by this
> 
> mesArray[0] = 5
> mesArray[1] = x
> mesArray[2] = -
> ...
> 
> this has function?
> how can I make it?

irb(main):001:0> mesArray = "5x-2=18".split ""
=> ["5", "x", "-", "2", "=", "1", "8"]
-- 
Posted via http://www.ruby-forum.com/.