'.*' can match any thing

  • 0

    I was really confused by the standard output until I realized that '.*' can match any thing such as "sdfgewgrfewg".
    because "*" can match any length of it preceder, which means that if its preceder is '.', it can match any length of any characters and these characters don't need to be same with each other.

Log in to reply

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.