<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>naomichi-h</author_name>
  <author_url>https://blog.hatena.ne.jp/naomichi-h/</author_url>
  <blog_title>らせんびより</blog_title>
  <blog_url>https://naomichi-h.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>はじめに Ruby技術者認定試験の例題に触ってみたところ、正規表現について見事にど忘れしていることがわかった。 忘れてしまった時用のメモ。 正規表現リテラル /で囲むことによって正規表現オブジェクト（Regexpオブジェクト）を生成できる regexp = /foo/ regexp.class =&gt; Regexp このRegexpクラスこそがRubyで正規表現を扱うためのクラス。 Regexpオブジェクトを扱うメソッド例 String#sub str.sub(pattern, replacement) 正規表現のパターン(pattern)にマッチした最初 の部分を文字列(replacement…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnaomichi-h.hatenablog.com%2Fentry%2F2022%2F11%2F19%2F174146&quot; title=&quot;正規表現忘備録 - らせんびより&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>2022-11-19 17:41:46</published>
  <title>正規表現忘備録</title>
  <type>rich</type>
  <url>https://naomichi-h.hatenablog.com/entry/2022/11/19/174146</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
