<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>round-rand</author_name>
  <author_url>https://blog.hatena.ne.jp/round-rand/</author_url>
  <blog_title>ランドML</blog_title>
  <blog_url>https://ml-rand-note.hatenablog.com/</blog_url>
  <categories>
    <anon>re</anon>
  </categories>
  <description>概要 主な正規表現一覧 文字の集合 ⇒ [] 範囲指定の文字集合 ⇒ [〇-△] 数値 ⇒ \d 分割(re.split) 基本的な使い方 実装例 文字列の置換(re.sub) 基本的な使い方 実装例 概要 Pythonではreライブラリを使うことで正規表現を実装できます。 ↓↓参考サイト(公式ドキュメント) docs.python.org 主な正規表現一覧 文字の集合 ⇒ [] []で括った文字のいずれかに一致するか。 [abc] ⇒ a, b, cのいずれかに一致 範囲指定の文字集合 ⇒ [〇-△] 〇~△までの範囲の文字にマッチするか。 [a-x] ⇒ a~xのいずれかに一致 [0-5]…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fregex&quot; title=&quot;Python 正規表現re(分割, 置換) - ランドML&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>2024-09-21 00:00:00</published>
  <title>Python 正規表現re(分割, 置換)</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/regex</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
