ニュース

今月から「Python Monthly Topics」と題して、毎月Python関連の話題になったトピックやツール、ライブラリなどを紹介していきたいと思います。第1回目はPython 3.10の新機能「構造化パターンマッチング(Structural Pattern Matching)」について紹介します。
今月の「Python Monthly Topics」では、第1回で紹介したPython 3.10の新機能「構造的パターンマッチング(Structural Pattern Matching)」の続きをお届けします。
How to use the regular expression functions provided by the ‘re’ library to match, search, and replace text in your Python programs.
A proposal under consideration by Python’s development team would finally bring pattern matching statements to the language.
One of the major new developments planned for Python 3.10 (due in October) is structural pattern matching syntax, which is a common feature in many other languages.
This chapter’s first section introduces and explains all the key regular expression concepts and shows pure regular expression syntax—it makes minimal reference to Python itself. Then the second ...