split ã®ç 究 split é¢æ°ã®æåãè¨èªãã¨ã«å¾®å¦ã«ç°ãªãã¨ç¥äººã¨è©±é¡ã«ãªã£ãã®ã§èª¿ã¹ã¦ã¿ã¾ãããçµæã¯ã¾ã¨ããã©ããã Ruby ã¾ãã¯Rubyãã調ã¹ã¦ã¿ã¾ããirb ã使ã£ã¦èª¿ã¹ã¾ããã % irb ... ã¾ãã¯æ®éã«åå² >> "a,b,c".split(",") => ["a", "b", "c"] æ«å°¾ã«ç©ºè¦ç´ ãããã¨ãçç¥ããã¦ãã¾ã >> "a,,c,,".split(",") => ["a", "", "c"] æ«å°¾ã®ç©ºè¦ç´ ãçç¥ããªãããã«ã¯ -1 ãå¿ è¦ >> "a,,c,,".split(",", -1) => ["a", "", "c", "", ""] 空æååã ã¨çµæã空 >> "".split(",") => [] -1 ãã¤ãã¦ãåæ§ >> "".split(",", -1) => [] åå²ãã¿ã¼ã³ãæå®ããªãå ´åãåæ§ >> "".split
{{#tags}}- {{label}}
{{/tags}}