{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubyco.hatenadiary.org%2Fentry%2F20061127%2Fcount\" title=\"String#count - rubyco\uff08\u308b\u3073\u3053\uff09\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"rubyco\uff08\u308b\u3073\u3053\uff09\u306e\u65e5\u8a18","url":"https://rubyco.hatenadiary.org/entry/20061127/count","author_url":"https://blog.hatena.ne.jp/rubyco/","description":"String#count\u3067\u6307\u5b9a\u3057\u305f\u6587\u5b57\u6570\u3092\u30ab\u30a6\u30f3\u30c8\u3057\u307e\u3059\u3002 require 'pathname' p \"Hello, Rubyco!\".count('o') #=> 2 ('o'\u306f2\u500b\u3042\u308b) p '\u3053\u3093\u306b\u3061\u306f, \u308b\u3073\u3053\u3055\u3093.'.count('\u3053') #=> 12 (\u65e5\u672c\u8a9e\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3089\u3057\u3044) p Pathname.new('a.rb').read.count(\"\\n\") #=> 5 (\u30d5\u30a1\u30a4\u30eb\u306e\u884c\u6570)\u8a73\u3057\u304f\u306frefe String#count\u53c2\u7167\u3002","title":"String#count","provider_url":"https://hatena.blog","type":"rich","version":"1.0","published":"2006-11-27 00:00:00","categories":[],"provider_name":"Hatena Blog","height":"190","width":"100%","image_url":null,"blog_url":"https://rubyco.hatenadiary.org/","author_name":"rubyco"}