pub fn wildcard_regex(to_match: &str) -> Regex
Returns compiled wildcard regex.
Panics if an invalid wildcard regex is provided.