:
"split (/\ s/)" "split ('')" . ?
String # split, , '- :
If pattern is a single space, str is split on whitespace,
with leading whitespace and runs of contiguous whitespace characters ignored.
:
, . , .
, , .; -)
split , , , , . , csv Excel. , ",", , , .
, - , , !
, , , ?
a = ",1,2,,3,4,,5,,,,6,,,".split(/,+/)
:/, +/ , .
, , , . , split , ( String #):
If the limit parameter is omitted, trailing null fields are suppressed.
, , -, nil , . gsub :
a = ",1,2,,3,4,,5,,,,6,,,".gsub(/^,+/,'')
, , . :
a = ",1,2,,3,4,,5,,,,6,,,".gsub(/^,+/,'').split(/,+/)
!
, , , , , . , , :
a = ",1,2,,3,4,,5,,,,6,,,".gsub(/,+/,',').gsub(/^,/,'').split(',')
- . , , , , , , , - ( , , :)
, !