LoginSignup
14
19

More than 5 years have passed since last update.

正規表現の(.*?)と(.*)の違い

Last updated at Posted at 2014-09-15

aaa/bbb という文字列で、bbb をマッチさせたいのですが、aaa/(.*?) ならマッチして、 aaa/(.*) ではマッチしない理由がわかりません。
理由をご教授いただけないでしょうか。

aaa/(.*?) のマッチ

aaa/(.*) のマッチ

14
19
2

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
14
19