{"title":"\u6b63\u898f\u8868\u73fe\u306e\u8b0e \u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9","url":"https://needed.hatenadiary.jp/entry/20171104/p1","version":"1.0","blog_url":"https://needed.hatenadiary.jp/","description":"\u30d1\u30bf\u30fc\u30f3\u306b\u5909\u6570\u3092\u7528\u3044\u308b\u5834\u5408\u3001RegExp\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u306e\u3060\u305d\u3046\u3060\u3002 text \u8d64(\u30ec\u30c3\u30c9) \u9752(\u30d6\u30eb\u30fc) \u7dd1(\u30b0\u30ea\u30fc\u30f3) col = new Array(); col[\"\u30ec\u30c3\u30c9\"] = \"red\"; col[\"\u30d6\u30eb\u30fc\"] = \"blue\"; col[\"\u30b0\u30ea\u30fc\u30f3\"] = \"green\"; for(key in col) { // text = text.replace(new RegExp(\"(\" + key + \")\"), \"(\" + col[key] + \")\"); // errror // text = text.replace(new RegExp(\"\\(\" + ke\u2026","height":"190","provider_name":"Hatena Blog","categories":["javascript"],"blog_title":"\u306b\u3089\u3069\u3093\u306f\u3058\u3081\u307e\u3057\u305f","published":"2017-11-04 00:00:01","author_name":"needed","author_url":"https://blog.hatena.ne.jp/needed/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fneeded.hatenadiary.jp%2Fentry%2F20171104%2Fp1\" title=\"\u6b63\u898f\u8868\u73fe\u306e\u8b0e \u30a8\u30b9\u30b1\u30fc\u30d7\u30b7\u30fc\u30b1\u30f3\u30b9 - \u306b\u3089\u3069\u3093\u306f\u3058\u3081\u307e\u3057\u305f\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","width":"100%","type":"rich","image_url":null,"provider_url":"https://hatena.blog"}