{"version":"1.0","blog_title":"Murajun's Style","height":"190","blog_url":"https://murajun1978.hatenadiary.com/","type":"rich","provider_url":"https://hatena.blog","title":"Array\u3067\u6307\u5b9a\u7bc4\u56f2\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30d8(^o^)\u30ce","author_name":"murajun1978","published":"2014-09-19 23:04:03","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmurajun1978.hatenadiary.com%2Fentry%2F2014%2F09%2F19%2F230403\" title=\"Array\u3067\u6307\u5b9a\u7bc4\u56f2\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u30d8(^o^)\u30ce - Murajun&#39;s Style\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","provider_name":"Hatena Blog","url":"https://murajun1978.hatenadiary.com/entry/2014/09/19/230403","categories":["Ruby"],"description":"module Enumerable\u30e1\u30bd\u30c3\u30c9\u3067\u3044\u3063\u3071\u3064\u89e3\u6c7a # 1\u304b\u3089100\u307e\u3067\u306e\u6570\u5024\u3060\u3051\u3092\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408 [1, 30, 4000, 10, 50, 8000].grep(1..100) # => [1, 30, 10, 50] # String\u578b\u306e\u307f\u53d6\u5f97\u3057\u305f\u3044\u5834\u5408 [100, \"murajun\", 40, 100000, \"murajun1978\"].grep(String) # => [\"murajun\", \"murajun1978\"] # \u6b63\u898f\u8868\u73fe [100, \"murajun\", 40, 100000, \"murajun1978\"].grep(/\\d+\\Z/) # => [\"muraj\u2026","image_url":null,"author_url":"https://blog.hatena.ne.jp/murajun1978/"}