{"categories":["Ruby"],"height":"190","type":"rich","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftbpgr.hatenablog.com%2Fentry%2F20141201%2F1417439551\" title=\"Ruby | Regexp | to_s - Tbpgr Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"Tbpgr Blog","url":"https://tbpgr.hatenablog.com/entry/20141201/1417439551","version":"1.0","published":"2014-12-01 22:12:31","width":"100%","author_name":"tbpg","provider_url":"https://hatena.blog","description":"\u6982\u8981 Regexp#to_s -> String \u8a73\u7d30 \u6b63\u898f\u8868\u73fe\u306e\u6587\u5b57\u5217\u8868\u73fe\u3092\u751f\u6210\u3057\u3066\u8fd4\u5374\u3002 \u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9 require 'tbpgr_utils' tmp = /(h.ge)(f.o)(b.r)/.to_s bulk_puts_eval binding, <<-EOS /h.ge/.to_s /(h.ge)(f.o)(b.r)/.to_s /#{tmp}/ =~ 'hogefoobarlast@@@' $~ /#{tmp}(last)/ =~ 'hogefoobarlast@@@' $~ EOS __END__ \u4e0b\u8a18\u306fTbpgrUtils gem\u306e\u6a5f\u80fd bulk_puts_eval ht\u2026","author_url":"https://blog.hatena.ne.jp/tbpg/","title":"Ruby | Regexp | to_s","provider_name":"Hatena Blog","blog_url":"https://tbpgr.hatenablog.com/"}