You are given a string s and a pattern string p. The pattern p contains lowercase English letters and exactly one '*' character.
The '*' character can be replaced with any sequence of zero or more characters.
Return true if p can match any substring of s after replacing the '*', and false otherwise.
Note: A substring is a contiguous non-empty sequence of characters within a string.
Constraints:
s.length
p.length
s contains only lowercase English letters.
p contains only lowercase English letters and exactly one '*'.
You are given a string s and a pattern string p. The pattern p contains lowercase English letters and exactly one '*' character.
The '*' character can be replaced with any sequence of zero or more characters.
Return true if p can match any substring of s after replacing the '*', and false otherwise.
Note: A substring is a contiguous non-empty sequence of characters within a string.
Constraints:
s.length
p.length
s contains only lowercase English letters.
p contains only lowercase English letters and exactly one '*'.