kepler has asked for the wisdom of the Perl Monks concerning the following question:
Greetings
I'm having some troubles to place in order some files I have in an array. Its format is of the type "name(p or m)xxxx.xxx", that is, begins with "name", then with 'p' or 'm' (meaning + or -), then 4 digits (from 0000 to 9999), and then extension is the same for all (3 digits). So a logic sequence would be namem1100.111.namem0900.111, namem0010.111, namep0000.111, namep0800.111, namep9999.111. Is there a quick way to order the array with these rules? I'm not an expert in these kind or orders...
Kind regards
Kepler
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Aid for regex expression
by tybalt89 (Monsignor) on Dec 29, 2017 at 19:15 UTC | |
by kepler (Scribe) on Dec 29, 2017 at 19:38 UTC | |
|
Re: Aid for regex expression
by Your Mother (Archbishop) on Dec 29, 2017 at 19:22 UTC | |
|
Re: Aid for regex expression
by 1nickt (Canon) on Dec 29, 2017 at 19:27 UTC |