<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shokai</author_name>
  <author_url>https://blog.hatena.ne.jp/shokai/</author_url>
  <blog_title>橋本詳解</blog_title>
  <blog_url>https://shokai.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>木を作るか1文字ずつ読んでいくか考えたが、面倒だったので最初に区切り文字で配列に分割して左端から見ていくようにした。 今回気づいた事 配列の配列はjoinしてsplitすると1次元の配列になる Rubyで全角半角混じった文字列を1文字ずつ処理するの、面倒 ahokaiにもこの関数追加しておいた。replace_brokenBrackets.rb #!/usr/bin/env ruby # -*- coding: utf-8 -*- # 対応していない括弧を取り除く def fix_brackets(str) brackets = [['&lt;','&gt;'],['＜','＞'],['(',')'],[…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshokai.hatenadiary.org%2Fentry%2F20091117%2F1258481272&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>2009-11-17 03:07:52</published>
  <title>文字列中の（）や「」や＜＞がペアになっていなかったら取り除く</title>
  <type>rich</type>
  <url>https://shokai.hatenadiary.org/entry/20091117/1258481272</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
