Skip to main content

glob_to_regex

Function glob_to_regex 

Source
fn glob_to_regex(glob: &str) -> String
Expand description

Convert a glob (*, **, ?) into an anchored regular expression.

* and ? do not cross /. ** matches across directories; **/ also matches zero intervening segments without collapsing the following name.