Name
fnmatch
Synopsis
bool fnmatch(stringpattern, stringstring[, intflags])
Returns true if
string matches the shell wildcard pattern
given in pattern. See glob for the pattern-matching rules. The
flags value is a bitwise OR of any of the following values:
| Treat backslashes in
|
| Slash characters in
|
| A period at the
beginning of the string, or before any slash if |
| Ignore case when
matching |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access