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