Gollum@feddit.de to Programmer Humor@programming.dev · 1 year agoD or d come oni.imgur.comimagemessage-square217fedilinkarrow-up11.4Karrow-down149 cross-posted to: programmerhumor@lemmy.ml
arrow-up11.35Karrow-down1imageD or d come oni.imgur.comGollum@feddit.de to Programmer Humor@programming.dev · 1 year agomessage-square217fedilink cross-posted to: programmerhumor@lemmy.ml
minus-squareFeyter@programming.devMlinkfedilinkarrow-up8arrow-down5·1 year agoSorry, down is a substring of download I don't get your point either?
minus-squareHonytawk@lemmy.ziplinkfedilinkarrow-up6arrow-down2·1 year agoSubstring is not string. If they were interchangeable, then "D" & "d" should be too.
minus-squareFeyter@programming.devMlinkfedilinkarrow-up2·1 year agodown 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.
Sorry,
down
is a substring ofdownload
I don't get your point either?Substring is not string.
If they were interchangeable, then "D" & "d" should be too.
down
matchesdown*
because*
also includes empty string. Alsodownload
matchesdown*
D
matchesD*
butd
is not matchingD*
becauseD
is a different character thand
.