Mega Code Archive

 
Categories / Ruby / String
 

Split with by one or more space

"Three little       words".split(/\s+/)   # => ["Three", "little", "words"]