Splitting on whitespace, period, comma or double quotes, and not on single quotes:
str = %Q{this is the.string to's split,real "ok" nice-like.}
str.split(/\s|\.|,|"/)
=> ["this", "is", "the", "string", "", "", "", "to's", "split", "real", "", "ok", "", "nice-like"]
How to eloquently remove empty strings?
How to eloquently remove strings that are shorter than MIN_LENGTH?