You are given two strings s1 and s2. The wildcard character is now denoted by a number instead of a '.' - it denotes the number of consecutive wildcard characters that would appear in s1. The number would range from 0-9.
Asked in the onsite coding stage. Part 2 of the same problem. Implement wildcard_match(s1, s2), returning true if the entire pattern s1 matches s2. Letters in s1 match themselves, while each digit matches exactly that many arbitrary characters.
Examples: r2t and rokt return true; r3t and rokt return false; 1111 and rokt return true; r1k1 and rokt return true.
Inputs contain lowercase letters and digits in s1, and lowercase letters in s2.
def wildcard_match(s1, s2):