<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>xoyip</author_name>
  <author_url>https://blog.hatena.ne.jp/xoyip/</author_url>
  <blog_title>ぴよログ</blog_title>
  <blog_url>https://xoyip.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
    <anon>正規表現</anon>
  </categories>
  <description>タイトルがわかりづらいけど、この文字列を str = &quot;ab#cde# ##...fgh.i##&quot; こうしたい、 [&quot;ab&quot;, &quot;#&quot;, &quot;cde&quot;, &quot;#&quot;, &quot; &quot;, &quot; &quot;, &quot;#&quot;, &quot;#&quot;, &quot;.&quot;, &quot;.&quot;, &quot;.&quot;, &quot;fgh&quot;, &quot;.&quot;, &quot;i&quot;, &quot;#&quot;, &quot;#&quot;] という話。 文字列はひとまとめ、それ以外はバラバラにという感じで。 分割というとまずString#splitが思いつく。String#splitは普通に使うと区切り文字で分割した文字列の配列を返してくれる。そのため上のような結果が欲しい場合には使えない。区切り文字にした文字が消えてしまうからね。 ところでドキュメ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxoyip.hatenablog.com%2Fentry%2F2014%2F06%2F18%2F190000&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-06-18 19:00:00</published>
  <title>Rubyで文字列を正規表現にマッチする単位で分割する方法</title>
  <type>rich</type>
  <url>https://xoyip.hatenablog.com/entry/2014/06/18/190000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
