• Honytawk@lemmy.zip
      link
      fedilink
      arrow-up
      6
      arrow-down
      2
      ·
      1 year ago

      Substring is not string.

      If they were interchangeable, then "D" & "d" should be too.

      • Feyter@programming.devM
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        down matches down* because * also includes empty string. Also download matches down*

        D matches D* but d is not matching D* because D is a different character than d.