正規表現reモジュールのsearch(pattern, string)
とmatch(pattern, string)
は、指定した文字列(string
)が正規表現(pattern
)にマッチするか調べる関数です。
search()
は文字列の中の場所を問いませんが、match()
は文字列の先頭がマッチするか判定します。
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
正規表現reモジュールのsearch(pattern, string)
とmatch(pattern, string)
は、指定した文字列(string
)が正規表現(pattern
)にマッチするか調べる関数です。
search()
は文字列の中の場所を問いませんが、match()
は文字列の先頭がマッチするか判定します。
Register as a new user and use Qiita more conveniently
Go to list of users who liked