{"provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/pythonco/","blog_url":"https://pythonco.hatenadiary.org/","url":"https://pythonco.hatenadiary.org/entry/20060915/p1","image_url":null,"version":"1.0","blog_title":"pythonco(\u3071\u3044\u305d\u3093\u3053)\u306e\u65e5\u8a18","author_name":"pythonco","height":"190","published":"2006-09-15 00:00:00","description":"\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u3046\u305f\u3081\u306b\u306fre\u3092import\u3057\u307e\u3059\u3002 \u53c2\u8003\u8cc7\u6599 http://www.python.jp/doc/release/lib/module-re.html \u4ee5\u4e0ba.txt\u306e\u4e2d\u8eab\u304c apple apple juice pineapple\u3053\u3093\u306a\u611f\u3058\u306b\u306a\u3063\u3066\u3044\u308b\u3082\u306e\u3068\u3057\u3066\u3001re\u306e\u4f7f\u3044\u65b9\u3092\u307e\u3068\u3081\u307e\u3059\u3002 import re for i in file('a.txt'): if re.match('apple', i): print i, # => apple # apple juice for i in file('a.txt'): if re.search('apple', i): print\u2026","type":"rich","width":"100%","provider_url":"https://hatena.blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpythonco.hatenadiary.org%2Fentry%2F20060915%2Fp1\" title=\"\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u304a\u3046 - pythonco(\u3071\u3044\u305d\u3093\u3053)\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":[],"title":"\u6b63\u898f\u8868\u73fe\u3092\u4f7f\u304a\u3046"}