<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mTakata</author_name>
  <author_url>https://blog.hatena.ne.jp/mTakata/</author_url>
  <blog_title>Sun~sun~Flower's</blog_title>
  <blog_url>https://www.sunsunflowers.com/</blog_url>
  <categories>
    <anon>IT・プログラミング</anon>
  </categories>
  <description>こんにちは。 当ページにアクセスしてくださり、ありがとうございます。 この記事は、プログラミング言語「Ruby」のフレームワーク「Rails」についての記事になります。 問題 任意の文字列内の文字&quot;code&quot;が出現する回数を数えて、その数を出力するメソッドを作りましょう。 ただし、&quot;code&quot;の&quot;d&quot;の箇所は、任意の文字が使用可能です。 例えば&quot;cope&quot;と &quot;cooe&quot;はカウントできます。 ヒント:正規表現を使用してみましょう。 出力例： count_coxe('aaacodebbb') → 1 count_coxe('codexxcode') → 2 count_coxe('cozexxc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sunsunflowers.com%2Fentry%2Fit%2Frails-method-of-count&quot; title=&quot;【Railsアプリケーション】指定した文字列の出現回数をカウントする方法 - Sun~sun~Flower&amp;#39;s&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>https://cdn-ak.f.st-hatena.com/images/fotolife/m/mTakata/20200424/20200424151008.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-27 10:00:00</published>
  <title>【Railsアプリケーション】指定した文字列の出現回数をカウントする方法</title>
  <type>rich</type>
  <url>https://www.sunsunflowers.com/entry/it/rails-method-of-count</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
