You are viewing a single thread.
View all comments View context
3 points

Sorry, down is a substring of download I don’t get your point either?

permalink
report
parent
reply
4 points

Substring is not string.

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

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
1 point
*

but why do we have to match specifically against substr*? it’s not a law of nature, we could also match against the regex (?i)substr(?-i).*

not saying that one option is necessarily better, but I don’t see a good reason for which any one of these options would be terrible

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 3.7K

    Monthly active users

  • 1.1K

    Posts

  • 39K

    Comments