in reply to RegEx within glob

File globbing has its own pattern syntax and matching semantics, which aren't regex compatible (and much more limited in features).

The closest you could get for your \d{10} example is the pattern [0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].

Replies are listed 'Best First'.
Re^2: RegEx within glob
by toolic (Bishop) on Feb 22, 2012 at 15:22 UTC

      I wasn't suggesting you should write "[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]" in Perl — sure you can generate the pattern any way you like :)

      I just meant to point out that globbing itself provides no means to say "10 times" a subpattern (like {10} in regex); you have to specify the pattern "unrolled" instead.