<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>steavevaivai</author_name>
  <author_url>https://blog.hatena.ne.jp/steavevaivai/</author_url>
  <blog_title>teruuuのブログ</blog_title>
  <blog_url>https://steavevaivai.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>複数行まとめてgrepしたいことがあったので、調べてみたら以下で説明で同じことをやろうとしていました。 stackoverflow.com grepに対して -P のオプションでPerlの正規表現を使えるようにし、 -z のオプションでテキスト全体を一つの行として扱うことで複数行のgrepが実現できるようです。 windows10のwslで試しに実行してみたところ。 $ cat test.txt xaaaxxxxxxxxx xbbbxxxxxxxxx xcccxxxxxxxxx xaaaxxxxxxxxx xbbbxxxxxxxxx xaaaxxxxxxxxx xcccxxxxxxxxx xa…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsteavevaivai.hatenablog.com%2Fentry%2F2019%2F12%2F08%2F153028&quot; title=&quot;複数行grepする方法を調べてみた - teruuuのブログ&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>2019-12-08 15:30:28</published>
  <title>複数行grepする方法を調べてみた</title>
  <type>rich</type>
  <url>https://steavevaivai.hatenablog.com/entry/2019/12/08/153028</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
