Rokt placement identifiers can be filtered by wildcard patterns before a placement is selected. Implement match_pattern(text, pattern) to determine whether the entire text matches pattern.
The pattern supports two special characters:
? matches exactly one character.* matches zero or more characters, including characters matched by other wildcards.All other characters match themselves exactly. Matching is case-sensitive, and the pattern must consume the entire string. Return True for a complete match and False otherwise.
text and pattern.text matches the entire pattern.? and * are wildcard operators* charactersdef match_pattern(text, pattern):