AlisonA has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I have a problem using regular expresions and the glob operator.
I want to get files with a specific name format from a directory using glob. The regular expresion I use to match the name format is
Any suggestions on how to get this regular expression into glob much appreciated./[A-Za-z]{2}_\w{2,5}/ I can't get it to match the 2 to 5 \w.
thanks
Alison
20031009 Edit by Corion: Added formatting
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: glob and regex
by broquaint (Abbot) on Oct 09, 2003 at 14:44 UTC | |
by hardburn (Abbot) on Oct 09, 2003 at 14:50 UTC | |
|
Re: glob and regex
by dws (Chancellor) on Oct 09, 2003 at 15:04 UTC | |
|
Re: glob and regex
by Abigail-II (Bishop) on Oct 09, 2003 at 14:42 UTC | |
by dragonchild (Archbishop) on Oct 09, 2003 at 16:22 UTC | |
|
Re: glob and regex
by Anonymous Monk on Oct 09, 2003 at 16:43 UTC |