1
我有这种类型的字符串如何区分captitalize和non captialize单词?
str = "\n\t\t\t\t\t\t\t\tRemovable neck strapBelt loop\n \n \n \n\t\t\t\t\t\t\"
要转换成
Removable neck strap Belt loop
通知如何strap
,Belt
分离。
到目前为止,我已经做到了这一点
str.gsub(/\n|\t/,'').strip
这给了我
Removable neck strapBelt loop
,但未能strapBelt
之间的分裂。