Overview of Wildcard Match features
mainWildcard Match is an enhanced replacement for Python's built-in fnmatch, glob, and pathlib libraries. It translates simple, path-centric glob patterns into regular expressions to provide file matching and globbing that closely follows Bash-like behavior.
Key features include:
- Enhanced Globbing: Supports
**for recursive globbing and Zsh-style***for recursive globbing that follows symlinks. - Bash-like Syntax: Supports backslash escaping (
\), brace expansion (e.g.,a{b,{c,d}}expands toab ac ad), and extended match patterns (@(...),+(...),*(...),?(...), and!(...)). - POSIX Support: Supports POSIX-style character classes (e.g.,
[[:alnum:]]) using theClocale. - Path Utilities: Includes
globmatchfor path-centric matching and apathlibvariant that uses Wildcard Match's engine instead of Python's default. - User Expansion: Automatically expands
~or~usernameto the appropriate user path. - File Crawling: Provides a dedicated file search utility called
wcmatchbuilt on top offnmatchandglobmatch.