{"author_name":"hysa","title":"Input\u8981\u7d20\u306e<code>value</code>","width":"100%","published":"2009-09-06 00:00:00","version":"1.0","blog_url":"https://hysa.hateblo.jp/","type":"rich","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/hysa/","blog_title":"\u5730\u7403\u30a6\u30a9\u30fc\u30ab\u30fc\uff12","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhysa.hateblo.jp%2Fentry%2F20090906%2Fescape\" title=\"Input\u8981\u7d20\u306e&lt;code&gt;value&lt;/code&gt; - \u5730\u7403\u30a6\u30a9\u30fc\u30ab\u30fc\uff12\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"<input type=\"text\" id=\"pattern\" value=\"\\d\" /> <script type=\"text/javascript\"> var p1 = '\\d'; var p2 = document.getElementById('pattern').value; console.log('p1 is ' + p1); // \u2192 p1 is d console.log('p2 is ' + p2); // \u2192 p2 is \\d console.log(new RegExp(p1).test(123)); // \u2192 false console.log(new RegExp(\u2026","provider_url":"https://hatena.blog","categories":["JavaScript"],"url":"https://hysa.hateblo.jp/entry/20090906/escape","image_url":null,"height":"190"}