<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ke_takahashi</author_name>
  <author_url>https://blog.hatena.ne.jp/ke_takahashi/</author_url>
  <blog_title>memorandums</blog_title>
  <blog_url>https://memorandums.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>プログラムを作っていて表記なようなルーチンが必要になりました。gistを探せばすぐ出てきそうですが作ってみました。Rubyらしいプログラムはなかなかできないもので。。。１文字ずつベタで検索するプログラムを作ったのですが、サーチならinclude?やindexがあるじゃん、ということで作ったのがプログラム１。基本パターンしかテストしていないので抜けがあるかもしれません。■プログラム１（String#indexを使った例） で、プログラム１を作りながら、こんな面倒なことをしなくてもsplitで分離して個数を調べればいいじゃん。。。と思って作り直したのが以下。作ったというにはおこがましいくらいです。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F2013%2F04%2F18%2F180723&quot; title=&quot;文字列中にある文字列が含まれる個数をカウントする - memorandums&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-04-18 18:07:23</published>
  <title>文字列中にある文字列が含まれる個数をカウントする</title>
  <type>rich</type>
  <url>https://memorandums.hatenablog.com/entry/2013/04/18/180723</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
