Package pathaddition :: Module match |
[hide private]
[frames] | no frames]

# Module match

source code
This module provides support for Ant-style wildcards, which are not the same as regular expressions (which are documented in the re module).

Functions | [hide private]
ant_match(name, pattern, casesensitive=True) Check if name matches pattern (Ant-style wildcards). | source code
translate(pat) Translate a Ant-style PATTERN to a regular expression. | source code

Variables | [hide private]
| _logger = `logging.getLogger('path.match')`
| _cache = `{}`

Function Details | [hide private]

### translate(pat) | source code
Translate a Ant-style PATTERN to a regular expression. There is no way to quote meta-characters.