{"blog_title":"\u30ed\u30d0\u306e\u8033","published":"2000-06-03 00:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiken0.hatenadiary.org%2Fentry%2F20000603%2Fp1\" title=\"\u4e00\u5b9a\u7bc4\u56f2\u306e\u884c\u3092\u53d6\u308a\u51fa\u3059 - \u30ed\u30d0\u306e\u8033\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_name":"iken0","author_url":"https://blog.hatena.ne.jp/iken0/","image_url":null,"type":"rich","categories":["ruby","pattern"],"version":"1.0","height":"190","url":"https://iken0.hatenadiary.org/entry/20000603/p1","blog_url":"https://iken0.hatenadiary.org/","provider_name":"Hatena Blog","title":"\u4e00\u5b9a\u7bc4\u56f2\u306e\u884c\u3092\u53d6\u308a\u51fa\u3059","provider_url":"https://hatena.blog","description":"perl\u306b\u306f\u958b\u59cb\u30d1\u30bf\u30fc\u30f3\u3068\u7d42\u4e86\u30d1\u30bf\u30fc\u30f3\u3092\u6307\u5b9a\u3059\u308b\u3068\uff0c\u305d\u306e\u7bc4\u56f2\u3092\u53d6\u308a\u51fa\u305b\u308b\u6f14\u7b97\u5b50\u304c\u5b58\u5728\u3059\u308b\u3089\u3057\u3044\uff0e def range( a, s, e) def find(a, p) return a.index(p) unless p.kind_of? Regexp a.each_with_index {|x,c| return c if x =~ p } return nil end sl = find(a,s) if sl el = find( a[sl+1..-1], e) return a[sl+1, el] if el end nil end # \u914d\u5217\u306b\u5404\u884c\u304c\u5165\u3063\u3066\u3044\u308b\u3082\u306e\u3068\u3059\u308b a = %w[a\u2026","width":"100%"}