返回顶部

收藏

Use whitespace as the place holder

更多
' \bIt's whitespace, Jim,\vbut not as we know it.\n'.gsub(/[\s\b\v]+/, ' ')
# => ' It's whitespace, Jim, but not as we know it. '

标签:Ruby,String

收藏

0人收藏

支持

0

反对

0

发表评论