0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Python】正規表現reモジュールのsearch関数とmatch関数

Last updated at Posted at 2025-06-16

正規表現reモジュールsearch(pattern, string)match(pattern, string)は、指定した文字列(string)が正規表現(pattern)にマッチするか調べる関数です。

search()は文字列の中の場所を問いませんが、match()は文字列の先頭がマッチするか判定します。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?