<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mrk21</author_name>
  <author_url>https://blog.hatena.ne.jp/mrk21/</author_url>
  <blog_title>mrk21::blog {}</blog_title>
  <blog_url>https://mrk21.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>例えばログ出力をテストしたい時があり、時刻などは無視したい場合があるが、これを正規表現を使ってマッチングしようとすると正規表現において特別な意味を持つ文字のエスケープが大変で見にくいのでワイルドカードのような簡易的な表現にしたい。 actual = &lt;&lt;~EOS [INFO] [2024-07-04T10:00:00Z] message1 [ERROR] [2024-07-04T10:00:01Z] #&lt;StandardError: error&gt; /path/to/file1:10:in `initialize' /path/to/file2:3:in `hoge' /path/to/file…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmrk21.hatenablog.com%2Fentry%2F2024%2F07%2F04%2F153815&quot; title=&quot;RubyのRegexp.escapeを使って簡易的なワイルドカードによるマッチングをする - mrk21::blog {}&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>2024-07-04 15:38:15</published>
  <title>RubyのRegexp.escapeを使って簡易的なワイルドカードによるマッチングをする</title>
  <type>rich</type>
  <url>https://mrk21.hatenablog.com/entry/2024/07/04/153815</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
