Split string by multiple delimiters

Solution 1:

word = "Now is the,time for'all good people"
word.split(/[\s,']/)
 => ["Now", "is", "the", "time", "for", "all", "good", "people"] 

Solution 2:

Regex.

"a,b'c d".split /\s|'|,/
# => ["a", "b", "c", "d"]