Implement regular expression matching with special characters: . (period) matches any single character, * (asterisk) matches zero or more of the preceding element. Given a string and a valid regex pattern, return whether the string matches. Output "true" or "false".
Example 1:
Example 2:
Constraints:
1 <= len(string) <= 100 1 <= len(pattern) <= 100 Pattern is valid (no leading *, no **)
Tags:
