nw::string::glob_to_regex
-
std::regex nw::string::glob_to_regex(StringView pattern, bool icase = false)
Converts a glob pattern to a regex.
Note
This only supports
?,*, and[seq]- Parameters:
pattern – E.g, “file?_nam*.ext”
icase – If true returns a case insentive regex
- Returns:
std::regex