The wildcard pattern describing the names to be accepted
A regular expression accepting the names pattern describes; matching is anchored at both ends, so a name
is accepted whole or not at all, and carries no state between calls, so the matcher may be freely reused
Compiles a glob pattern into a matcher.
Selects slash-separated names, such as paths or resource identifiers, by wildcard, sparing the caller the regular expression syntax the equivalent test would otherwise take.
Wildcards stand for:
?— a single character other than/, a supplementary code point counting as one*— any run of characters other than/, the empty run included**— any run of characters, the empty run included, spanning segments and line terminators alikeEvery other character is matched as it stands, the characters regular expression syntax reserves included, so a pattern collected from user input carries no syntax beyond the wildcards.