<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pythonco</author_name>
  <author_url>https://blog.hatena.ne.jp/pythonco/</author_url>
  <blog_title>pythonco(ぱいそんこ)の日記</blog_title>
  <blog_url>https://pythonco.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>正規表現を使うためにはreをimportします。 参考資料 http://www.python.jp/doc/release/lib/module-re.html 以下a.txtの中身が apple apple juice pineappleこんな感じになっているものとして、reの使い方をまとめます。 import re for i in file('a.txt'): if re.match('apple', i): print i, # =&gt; apple # apple juice for i in file('a.txt'): if re.search('apple', i): print…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpythonco.hatenadiary.org%2Fentry%2F20060915%2Fp1&quot; title=&quot;正規表現を使おう - pythonco(ぱいそんこ)の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2006-09-15 00:00:00</published>
  <title>正規表現を使おう</title>
  <type>rich</type>
  <url>https://pythonco.hatenadiary.org/entry/20060915/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
