Matching filenames with wildcards. See also System.Path.Glob for support for generating lists of files based on wildcards.
Inspired by fnmatch.py, part of the Python standard library.
Written by John Goerzen, email@example.com
The input wildcard for functions in this module is expected to be in the standard style of Posix shells.
? matches exactly one character \* matches zero or more characters [list] matches any character in list [!list] matches any character not in the list
The returned regular expression will always end in $ but never begins with ^, making it suitable for appending to the end of paths. If you want to match a given filename directly, you should prepend the ^ character to the returned value from this function.
|wildToRegex :: String -> String|
|Convert a wildcard to an (uncompiled) regular expression.|
|Produced by Haddock version 0.8|