{"height":"190","width":"100%","image_url":null,"provider_url":"https://hatena.blog","blog_title":"\u30e9\u30f3\u30c9ML","url":"https://ml-rand-note.hatenablog.com/entry/regex","categories":["re"],"published":"2024-09-21 00:00:00","version":"1.0","type":"rich","author_url":"https://blog.hatena.ne.jp/round-rand/","author_name":"round-rand","provider_name":"Hatena Blog","blog_url":"https://ml-rand-note.hatenablog.com/","description":"\u6982\u8981 \u4e3b\u306a\u6b63\u898f\u8868\u73fe\u4e00\u89a7 \u6587\u5b57\u306e\u96c6\u5408 \u21d2 [] \u7bc4\u56f2\u6307\u5b9a\u306e\u6587\u5b57\u96c6\u5408 \u21d2 [\u3007-\u25b3] \u6570\u5024 \u21d2 \\d \u5206\u5272(re.split) \u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9 \u5b9f\u88c5\u4f8b \u6587\u5b57\u5217\u306e\u7f6e\u63db(re.sub) \u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9 \u5b9f\u88c5\u4f8b \u6982\u8981 Python\u3067\u306fre\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3046\u3053\u3068\u3067\u6b63\u898f\u8868\u73fe\u3092\u5b9f\u88c5\u3067\u304d\u307e\u3059\u3002 \u2193\u2193\u53c2\u8003\u30b5\u30a4\u30c8(\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8) docs.python.org \u4e3b\u306a\u6b63\u898f\u8868\u73fe\u4e00\u89a7 \u6587\u5b57\u306e\u96c6\u5408 \u21d2 [] []\u3067\u62ec\u3063\u305f\u6587\u5b57\u306e\u3044\u305a\u308c\u304b\u306b\u4e00\u81f4\u3059\u308b\u304b\u3002 [abc] \u21d2 a, b, c\u306e\u3044\u305a\u308c\u304b\u306b\u4e00\u81f4 \u7bc4\u56f2\u6307\u5b9a\u306e\u6587\u5b57\u96c6\u5408 \u21d2 [\u3007-\u25b3] \u3007~\u25b3\u307e\u3067\u306e\u7bc4\u56f2\u306e\u6587\u5b57\u306b\u30de\u30c3\u30c1\u3059\u308b\u304b\u3002 [a-x] \u21d2 a~x\u306e\u3044\u305a\u308c\u304b\u306b\u4e00\u81f4 [0-5]\u2026","title":"Python \u6b63\u898f\u8868\u73fere(\u5206\u5272, \u7f6e\u63db)","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fregex\" title=\"Python \u6b63\u898f\u8868\u73fere(\u5206\u5272, \u7f6e\u63db) - \u30e9\u30f3\u30c9ML\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}