あなたは正しいです。最初のケースでは、その文字クラスの 1 文字と一致しますが、2 番目のケースでは、最初の文字クラスの後にできるだけ多くの文字を含めて、少なくとも 1 文字と一致します。
最初の1つ :
"
cd\ # Match the characters “cd ” literally
( # Match the regular expression below and capture its match into backreference number 1
[\w\/\.] # Match a single character present in the list below
# A word character (letters, digits, etc.)
# A / character
# A . character
)
"
二つ目 :
"
cd\ # Match the characters “cd ” literally
( # Match the regular expression below and capture its match into backreference number 1
[\w\/\.] # Match a single character present in the list below
# A word character (letters, digits, etc.)
# A / character
# A . character
+ # Between one and unlimited times, as many times as possible, giving back as needed (greedy)
)
"