I agree with LanX. Even if this is possible, it is the wrong solution, whatever the problem.
See glob, File::Glob, File::BSDGlob etc.
That is, earlier rules 'override' later ones.
Ie. the last rule is a catch-all: *.*; the preceding level is: *.txt, *.exe, *.png etc.; the level before that is: th_*.png etc.; and the top level are individual files: xyz.exe, th_qpr.png.
If you describe the problem you need to solve -- rather than the problem with your failed solution -- you'll likely get better answers.
In reply to Re: Searching for regular expression overlaps
by BrowserUk
in thread Searching for regular expression overlaps
by Giardap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |