Last Updated: February 25, 2016
·
791
· flori

Dividing strings by things

class String
   alias / split
end

And now:

>> "1,2,3" / ?, # => ["1", "2", "3"]

>> "1,    2  ,    3" / /\s*,\s*/ # => ["1", "2", "3"]