[issue13929] fnmatch to support escape characters
Israel Fruchter
report at bugs.python.org
Fri Feb 3 07:50:23 CET 2012
New submission from Israel Fruchter <israel.fruchter at gmail.com>:
fnmatch to support escape characters:
like that:
>>> name = "Document[Ver.2].doc"
>>> pattern = "*\[Ver.2\]*"
>>> fnmatch.fnmatch(name, pattern)
True
that's also fix glob module:
>>> pattern = "ipconfig /\?"
>>> glob.glob(pattern)
"ipconfig /?"
----------
components: Library (Lib)
messages: 152495
nosy: fruch
priority: normal
severity: normal
status: open
title: fnmatch to support escape characters
type: enhancement
versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13929>
_______________________________________
More information about the Python-bugs-list
mailing list