why the result of isMatch("ab",".*") is ture,but isMatch("ab",".*c") is false, this result confuesed me. help me .
the regular expression .c reads as 0 or more of any character with a c as the last character.
. reads as 0 or more of any character which basically matches anything.
".*" (i.e., "fuzzy" match) can match string with any length and any chars, so
isMatch(s, ".*") is always true for any string
".*c" contains char
c as the last entry which is a concrete match, so
isMatch("ab", ".*c") is false.