<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thr3a</author_name>
  <author_url>https://blog.hatena.ne.jp/thr3a/</author_url>
  <blog_title>動かざることバグの如し</blog_title>
  <blog_url>https://blog.turai.work/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>Javascriptでマッチするかどうかは以下のようにしてできる。文字列に「あ」が含まれているかどうかチェックしたい場合 var str = &quot;あいうえお&quot;; if(str.match(&quot;あ&quot;)){ console.log('match!'); } この場合は正規表現を使ったマッチではないので変数が使える var str = &quot;あいうえお&quot;; var match = &quot;あ&quot;; if(str.match(match)){ console.log('match!'); } ただ、以下の様に正規表現を利用してマッチしようとすると上手くいかない。文字列「match」を正規表現にかけてしまうのである /…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.turai.work%2Fentry%2F20140928%2F1411867814&quot; title=&quot;Javascript＋正規表現の際に変数使いたければnew RegExpを使え - 動かざることバグの如し&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>2014-09-28 10:30:14</published>
  <title>Javascript＋正規表現の際に変数使いたければnew RegExpを使え</title>
  <type>rich</type>
  <url>https://blog.turai.work/entry/20140928/1411867814</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
