{"height":"190","categories":["Perl","JavaScript"],"title":"Perl\u306esplit\u3068JavaScript\u306esplit","type":"rich","provider_name":"Hatena Blog","author_name":"teramako","provider_url":"https://hatena.blog","blog_title":"hogehoge @teramako","width":"100%","url":"https://teramako.hatenadiary.org/entry/20081004/p2","description":"split\u95a2\u6570\u306e\u6319\u52d5\u304c\u9055\u3046\u3053\u3068\u306b\u6700\u8fd1\u6c17\u4ed8\u3044\u305f\u3002\u6b63\u78ba\u306b\u306fPerl\u306e\u7b2c3\u5f15\u6570\u3068JavaScript\u306e\u7b2c2\u5f15\u6570\u3068\u3067\u306e\u6319\u52d5\u306a\u3093\u3060\u3051\u3069\u3002 JavaScript\u306e\u5834\u5408 var str = \"a b c d e f g\"; var array = str.split(/\\s+/, 3); // array.toSource() = [\"a\", \"b\", \"c\"] Perl\u306e\u5834\u5408 my $str = \"a b c d e f g\"; my @array = split(/\\s+/, $str, 3); # $array = [\"a\", \"b\", \"c d e f g\"] Perl\u306e\u5834\u5408\u306f\u5f8c\u7d9a\u304c\u305d\u306e\u307e\u307e\u6700\u5f8c\u306e\u8981\u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fteramako.hatenadiary.org%2Fentry%2F20081004%2Fp2\" title=\"Perl\u306esplit\u3068JavaScript\u306esplit - hogehoge @teramako\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","published":"2008-10-04 00:00:00","image_url":null,"author_url":"https://blog.hatena.ne.jp/teramako/","version":"1.0","blog_url":"https://teramako.hatenadiary.org/"}