<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>needed</author_name>
  <author_url>https://blog.hatena.ne.jp/needed/</author_url>
  <blog_title>にらどんはじめました</blog_title>
  <blog_url>https://needed.hatenadiary.jp/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>パターンに変数を用いる場合、RegExpオブジェクトを使わなければならないのだそうだ。 text 赤(レッド) 青(ブルー) 緑(グリーン) col = new Array(); col[&quot;レッド&quot;] = &quot;red&quot;; col[&quot;ブルー&quot;] = &quot;blue&quot;; col[&quot;グリーン&quot;] = &quot;green&quot;; for(key in col) { // text = text.replace(new RegExp(&quot;(&quot; + key + &quot;)&quot;), &quot;(&quot; + col[key] + &quot;)&quot;); // errror // text = text.replace(new RegExp(&quot;\(&quot; + ke…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneeded.hatenadiary.jp%2Fentry%2F20171104%2Fp1&quot; title=&quot;正規表現の謎 エスケープシーケンス - にらどんはじめました&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>2017-11-04 00:00:01</published>
  <title>正規表現の謎 エスケープシーケンス</title>
  <type>rich</type>
  <url>https://needed.hatenadiary.jp/entry/20171104/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
