<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>akr1155</author_name>
  <author_url>https://blog.hatena.ne.jp/akr1155/</author_url>
  <blog_title>akr1155の日記</blog_title>
  <blog_url>https://akr1155.hatenadiary.org/</blog_url>
  <categories>
    <anon>vim</anon>
  </categories>
  <description>vimの正規表現は以下のような変なクセがある。 :echo match('aaa', 'a*') =&gt; 0 （マッチする） :echo match('aaa', 'a+') =&gt; -1 （マッチしない） このような結果になるのは、*はエスケープが不要だが、+はエスケープが必要なため。 :echo match('aaa', 'a\+') =&gt; 0 とすればマッチする。エスケープが必要なのか不要なのか、メタキャラクタによってまちまちで分かりにくい。 また、magicというオプションによっても、挙動が変わる。このややこしさは、\vというメタキャラクタを使うと解決できる。 :echo match('a…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fakr1155.hatenadiary.org%2Fentry%2F20110825%2F1314279685&quot; title=&quot;Vimの正規表現では常に\vを使うことにする - akr1155の日記&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>2011-08-25 22:41:25</published>
  <title>Vimの正規表現では常に\vを使うことにする</title>
  <type>rich</type>
  <url>https://akr1155.hatenadiary.org/entry/20110825/1314279685</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
