def wildcard_to_re(text):
 return ''.join([_wildcard_to_regex.get(ch, ch) for ch in text])

def wildcard_to_re ( text ) : return '' . join ( [ _wildcard_to_regex . get ( ch , ch ) for ch in text ] )
convert plain wildcard string to regex .