<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rubikitch</author_name>
  <author_url>https://blog.hatena.ne.jp/rubikitch/</author_url>
  <blog_title>http://rubikitch.com/に移転しました</blog_title>
  <blog_url>https://rubikitch.hatenadiary.org/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>複雑な構造のテキストを巨大な正規表現で解析するのって快感だよね。 こんな感じで正規表現のxオプションで正規表現を複数行に分けて書けるようにし、コメントも書けるようにする。そして、インデントして細かく記述していく。そしてString#scan一発で情報を細切れにする。何度も正規表現マッチをするのではなくて、巨大な正規表現で複雑なテキストを一撃で仕留める。やってみるとわかるがこいつぁ快感だ。 正規表現の底力を知った！ def scan_html(html, &amp;block) regexp = / &lt;span\sclass=&quot;style_title&quot;&gt;&lt;a\s.+?href=&quot;.+? hsid=\d{…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frubikitch.hatenadiary.org%2Fentry%2F20080802%2F1217605650&quot; title=&quot;巨大な正規表現で解析するのは快感 - http://rubikitch.com/に移転しました&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>2008-08-02 00:47:30</published>
  <title>巨大な正規表現で解析するのは快感</title>
  <type>rich</type>
  <url>https://rubikitch.hatenadiary.org/entry/20080802/1217605650</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
