{"description":"Text.Regex.Posix \u306e (=~) \u95a2\u6570\u3092\u4f7f\u3063\u305f\u7f6e\u63db import Text.Regex.Posix replace str old new | match == \"\" = str | otherwise = headStr ++ new ++ replace tailStr old new where (headStr,match,tailStr) = str =~ old ::(String,String,String) import Text.Regex.Posix replace str old new = let (a,b,c) = str =~ old ::(Strin\u2026","version":"1.0","blog_url":"https://sirocco.hatenadiary.org/","author_url":"https://blog.hatena.ne.jp/sirocco/","width":"100%","blog_title":"sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2","published":"2010-04-02 09:26:23","image_url":null,"categories":["Haskell"],"provider_name":"Hatena Blog","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsirocco.hatenadiary.org%2Fentry%2F20100402%2F1270167983\" title=\"Haskell\u306e\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u30de\u30c3\u30c1\u5224\u5b9a\u30fb\u6587\u5b57\u5217\u306e\u7f6e\u63db\u30fb\u6587\u5b57\u5217\u306e\u5206\u5272 - sirocco \u306e\u66f8\u3044\u3066\u3082\u3059\u3050\u306b\u5fd8\u308c\u308b\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_url":"https://hatena.blog","author_name":"sirocco","height":"190","title":"Haskell\u306e\u6b63\u898f\u8868\u73fe\u306b\u3088\u308b\u30de\u30c3\u30c1\u5224\u5b9a\u30fb\u6587\u5b57\u5217\u306e\u7f6e\u63db\u30fb\u6587\u5b57\u5217\u306e\u5206\u5272","url":"https://sirocco.hatenadiary.org/entry/20100402/1270167983"}