[top] / fnmatch / translate
translate(pat)
Translate a shell PATTERN to a regular expression.
There is no way to quote meta-characters.