You can use Text::Glob to transform a file name containing wildcards into a regular expression.
Here you will find another function (_glob_to_regex) implementing a glob to regex transformation.
In reply to Re^2: Limiting a glob
by salva
in thread Limiting a glob
by zod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |