<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>interplinker</author_name>
  <author_url>https://blog.hatena.ne.jp/interplinker/</author_url>
  <blog_title>interplinkerのにっき</blog_title>
  <blog_url>https://interplinker.hatenadiary.org/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>とあるシステムから出力されたログファイルに含まれる、とある数値をひっぱりだしてグラフ化してみることにした。UNIXなら、grep して、perlなりawkなりsedなりを使い正規表現でパターンマッチに、必要なところだけを抽出するところ。だが、Windows環境なので、PowerShellでやることにする。 PS&gt; select-string 'MemoryUsage' crash-log.txt | ` &gt;&gt; % {[Text.RegularExpressions.Regex]::Replace($_, &quot;.*([0-9]{8}).*&quot;, &quot;`$1&quot;) } &gt;&gt; 19084080 904289…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finterplinker.hatenadiary.org%2Fentry%2F20080824%2F1219576960&quot; title=&quot; grepして、正規表現で抽出 - interplinkerのにっき&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>2008-08-24 20:22:40</published>
  <title> grepして、正規表現で抽出</title>
  <type>rich</type>
  <url>https://interplinker.hatenadiary.org/entry/20080824/1219576960</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
