Mega Code Archive

 
Categories / Ruby / String
 

Split a string into multiple pieces

puts "Short sentence. Another. No more.".split(/\./).inspect