{"image_url":null,"author_name":"ttt242242","published":"2019-05-07 18:37:16","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fttt24224222.hatenadiary.jp%2Fentry%2F2019%2F05%2F07%2F183716\" title=\"python \u6587\u5b57\u5217\u306e\u30c9\u30c3\u30c8\u4ee5\u964d\u306e\u524a\u9664 - \u96d1\u591a\u306a\u6280\u8853\u7cfb\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_name":"Hatena Blog","description":"\u6b63\u898f\u8868\u73fe\u3092\u7528\u3044\u3066\u524a\u9664\u3057\u3066\u307f\u308b \u4ee5\u4e0b\u30b5\u30f3\u30d7\u30eb\u30b3\u30fc\u30c9\u3002\u5143\u6587\u5b57 \u300ctest.xxx\u300d\u306e\u30c9\u30c3\u30c8\u4ee5\u964d\u3092\u524a\u9664\u3059\u308b import re st = \"test.xxx\" # \u5143\u306e\u6587\u5b57\u5217 new_st = e.sub(r'\\..+$', '',files[0]) # \u30c9\u30c3\u30c8\u4ee5\u964d\u524a\u9664 print(new_st) # \u5909\u63db\u5f8c\u306e\u6587\u5b57\u5217\u306e\u51fa\u529b # => test","provider_url":"https://hatena.blog","blog_url":"https://ttt24224222.hatenadiary.jp/","blog_title":"\u96d1\u591a\u306a\u6280\u8853\u7cfb\u30e1\u30e2","url":"https://ttt24224222.hatenadiary.jp/entry/2019/05/07/183716","height":"190","title":"python \u6587\u5b57\u5217\u306e\u30c9\u30c3\u30c8\u4ee5\u964d\u306e\u524a\u9664","width":"100%","categories":["python","\u6b63\u898f\u8868\u73fe"],"author_url":"https://blog.hatena.ne.jp/ttt242242/","version":"1.0","type":"rich"}