In the problem example case:
isMatch("ab", ".*") → true
while the Input ("ab", ".*c") Expected output is false??
@jimjea c* can match any amount of c, here it can match zero c,
then a* matches two a(s), this is why cab can match aab
@Leiduan
so in the case [isMatch("ab", ".") → true] which is defined as a example of this problem, the dot match the 'a', then the star means 'Matches zero or more of the preceding element.', i don't know which character in '.' can match 'b'.
...I can not understand, I think this problem has a bug...
@JayFang1993 I'm confused by this problem too. And I think that the second string contains the first string is true but the result is false...