<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>eel3</author_name>
  <author_url>https://blog.hatena.ne.jp/eel3/</author_url>
  <blog_title>新・日々録 by TRASH BOX@Eel</blog_title>
  <blog_url>https://eel3.hatenablog.com/</blog_url>
  <categories>
    <anon>日記</anon>
    <anon>プログラミング</anon>
    <anon>Linux</anon>
  </categories>
  <description>改行区切りのテキストレコードを舐めて、特定の形式に当てはまるものを除外するツールが欲しくなった。形式の判定には正規表現が使えそうだった。Unix環境で動かすなら、既存のテキストフィルタを使えばよい。だが残念なことに動作環境はWindowsで、しかもスクリプトではなく単体で動作する実行ファイルに仕立て上げる必要があった。そこで、初めてC++11の正規表現ライブラリを使って、即席のツールを書いた。で、ふと思ったのだが、Unix環境では、標準のテキストフィルタとCやC++で正規表現ライブラリを使って作った即席のツールでは、どちらが高速なのだろうか？grep(1)などのテキストフィルタは高速に動作する…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Feel3.hatenablog.com%2Fentry%2F20161210%2F1481360920&quot; title=&quot;正規表現を使ったテキストフィルタとC/C++による自作ツールではどちらが高速か？ - 新・日々録 by TRASH BOX@Eel&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>2016-12-10 18:08:40</published>
  <title>正規表現を使ったテキストフィルタとC/C++による自作ツールではどちらが高速か？</title>
  <type>rich</type>
  <url>https://eel3.hatenablog.com/entry/20161210/1481360920</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
