From a String to an Array : Convert to Array « String « Ruby






From a String to an Array


split converts a string to an array. 

puts "0123456789".split

 








Related examples in the same category

1.splitting up all the individual values and converting them into elements
2.regular expression matches a comma and a space (/, /)