wildcard-to-regexp

wildcard-to-regexp is a compiled Lisp function in `files.el'.

(wildcard-to-regexp WILDCARD)

Given a shell file name pattern WILDCARD, return an equivalent regexp.
The generated regexp will match a filename only if the filename
matches that wildcard according to shell rules. Only wildcards known
by `sh' are supported.