character; regular expression pattern for matching whitespace
characters
collapse.whitespace
logical; whether adjacent whitespace is collapsed
* characters are all lower case
* non- w, s and - are dropped
* w and - are converted to underscore
* no support for acronyms
Examples
str_spine_case( "One Flew Over The Cuckoo's Nest" ) # One Flew Over The Cuckoo's Nest
str_spine_case( "Catch 22" ) # catch-22
str_spine_case( "Catch_ 22" )