<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kyoneco</author_name>
  <author_url>https://blog.hatena.ne.jp/kyoneco/</author_url>
  <blog_title>kyoneco’s blog</blog_title>
  <blog_url>https://kyoneco.hatenablog.com/</blog_url>
  <categories>
    <anon>詳説　正規表現</anon>
  </categories>
  <description>kyoneco.hatenablog.com 2.3.6 テキストからHTMLへの変換 プレーンテキストをHTMLに変換したい 巨大文字列（テキスト全体が１つの大きな文字列）をつくりたい undef $/; $text = &lt;&gt;; &amp;,&lt;,&gt;をHTMLエンコーディングである&amp;anp; , &amp;lt; , &amp;gt;へ変換したい $text =~ s/&amp;/&amp;amp;/g; 段落を&lt;p&gt;で区切りたい ↓ 空行があいだにあれば段落の区切り ↓ 空行を見分けたい ↓^$は論理行の行頭と行末ではない 拡張行アンカーマッチモードをつかう ↓ $text =~ s/^$/&lt;p&gt;/mg; ↓ 空行に空白文字がある…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkyoneco.hatenablog.com%2Fentry%2F2022%2F12%2F21%2F162159&quot; title=&quot;正規表現　第二章　テキストからHTMLへの変換 - kyoneco’s 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>2022-12-21 16:21:59</published>
  <title>正規表現　第二章　テキストからHTMLへの変換</title>
  <type>rich</type>
  <url>https://kyoneco.hatenablog.com/entry/2022/12/21/162159</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
