Skip to main content

glob_match

Function glob_match 

Source
pub fn glob_match(pattern: &str, input: &str) -> bool
Expand description

Simple glob matching supporting * (any chars) and ? (single char).

* and ? are the only special characters; backslash escapes them. Matching is case-insensitive.