Is "ab" ".*c" true or false???


  • 0
    Y

    I thought it would be true, since ".*" has already covered "ab", but the answer is false, can someone help me please?


  • 0
    A

    @yuryant ".*c" means c must follow any number of any characters. i.e. any string ending with c. "ab" doesn't end with c, so it doesn't match.


Log in to reply
 

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