diff options
Diffstat (limited to 'Doc/library/fnmatch.rst')
-rw-r--r-- | Doc/library/fnmatch.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/fnmatch.rst b/Doc/library/fnmatch.rst index 4911980..b14c5512 100644 --- a/Doc/library/fnmatch.rst +++ b/Doc/library/fnmatch.rst @@ -29,6 +29,9 @@ special characters used in shell-style wildcards are: | ``[!seq]`` | matches any character not in *seq* | +------------+------------------------------------+ +For a literal match, wrap the meta-characters in brackets. +For example, ``'[?]'`` matches the character ``'?'``. + .. index:: module: glob Note that the filename separator (``'/'`` on Unix) is *not* special to this @@ -76,8 +79,6 @@ patterns. Return the shell-style *pattern* converted to a regular expression. - Be aware there is no way to quote meta-characters. - Example: >>> import fnmatch, re |