<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>fugithora812</author_name>
  <author_url>https://blog.hatena.ne.jp/fugithora812/</author_url>
  <blog_title>つぶやきテック</blog_title>
  <blog_url>https://tubuyaki-tech.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>漢字・ひらがな・カタカナだけ 先日、Pythonのプログラムで「正規表現を使って漢字・ひらがな・カタカナだけを許可する」処理を書くにあたって、調べたことをアウトプットしてみます。 文字列全体が正規表現にマッチするか判定する ある文字列の全体が、あらかじめ定義した正規表現にマッチするか調べるにはre.fullmatch()が使えるそう。 import re num = r'^[1-9][0-9]{0,4}$' re_num = re.compile(num) print(re_num.fullmatch('123')) # → &lt;re.Match object; span=(0, 3), mat…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftubuyaki-tech.hatenablog.com%2Fentry%2F2021%2F06%2F30%2F123539&quot; title=&quot;【正規表現】漢字・ひらがな・カタカナだけを許可する【Python】 - つぶやきテック&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>2021-06-30 12:35:39</published>
  <title>【正規表現】漢字・ひらがな・カタカナだけを許可する【Python】</title>
  <type>rich</type>
  <url>https://tubuyaki-tech.hatenablog.com/entry/2021/06/30/123539</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
