Python/fnmatch
< Python
This module provides support for Unix shell-style wildcards, which are not the same as regular expressions (which are documented in the re module). The special characters used in shell-style wildcards are:
| Pattern | Meaning |
|---|---|
*
|
matches everything |
?
|
matches any single character |
[seq]
|
matches any character in seq |
[!seq]
|
matches any character not in seq |
For a literal match, wrap the meta-characters in brackets. For example, '[?]' matches the character '?'.