<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>echo &quot;tea\nconst&quot; tea const こんな出力からtestという文字を作りたいみたいなケースでperlのワンライナーでやろうとすると何も考えないと¥nで改行されてうまくいかないです。 echo &quot;tea\nconst&quot; | perl -pe 's/a\ncon//m' tea const これを防ぐためにはrecord separatorを指定してあげることでうまく動きます。オプションを付けなければセパレータは\0となります。 perl --help Usage: perl [switches] [--] [programfile] [arguments] -0[octal…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2021%2F09%2F26%2F142737&quot; title=&quot;【Perl】複数行の置換 - 地方エンジニアの学習日記&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>2021-09-26 14:27:37</published>
  <title>【Perl】複数行の置換</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2021/09/26/142737</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
