<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_hakoiri</author_name>
  <author_url>https://blog.hatena.ne.jp/y_hakoiri/</author_url>
  <blog_title>箱のプログラミング日記。</blog_title>
  <blog_url>https://www.y-hakopro.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>久しぶりにRuby記事。 前々から苦手意識が拭えなかった正規表現を理解できたのでまとめておく。 正規表現オブジェクト そもそも正規表現自体がオブジェクト。 きちんと考えれば分かることだけど、今までちゃんと意識したことなかった。 正規表現オブジェクトの作成方法はいくつかあって reg = /abc/ =&gt; /abc/ reg.class =&gt; Regexp //でパターンを囲む方法。 これが最も一般的かな。よく使う。 その他、Regexpクラスからnewすることもできる。 reg = Regexp.new(&quot;hoge&quot;) =&gt; /hoge/ reg.class =&gt; Regexp %rにより作成…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.y-hakopro.com%2Fentry%2F2020%2F04%2F18%2F200919&quot; title=&quot;Rubyで正規表現を使いたい - 箱のプログラミング日記。&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/y/y_hakoiri/20191102/20191102121618.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-04-18 20:09:19</published>
  <title>Rubyで正規表現を使いたい</title>
  <type>rich</type>
  <url>https://www.y-hakopro.com/entry/2020/04/18/200919</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
